FROM docker:24

RUN apk add --no-cache python3 py3-pip bash

WORKDIR /e2e

COPY requirements.txt ./
RUN python3 -m venv /opt/venv \
    && /opt/venv/bin/pip install --no-cache-dir --upgrade pip \
    && /opt/venv/bin/pip install --no-cache-dir -r requirements.txt pytest-csv

ENV PATH=/opt/venv/bin:$PATH

COPY . /e2e

CMD ["pytest", "--csv=/results/report.csv", "-v"]
