FROM python:3.12-alpine
WORKDIR /tests
COPY requirements.txt /tests/requirements.txt
RUN apk add --no-cache build-base libffi-dev openssl-dev libxml2-dev libxslt-dev \
    && pip install --no-cache-dir -r requirements.txt
COPY . /tests
CMD ["pytest", ".", "-v", "-c", "pytest.ini"]
