FROM python:3.12-slim-bookworm

RUN apt-get update && apt-get install -y --no-install-recommends \
        build-essential \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /work
COPY requirements.txt /work/requirements.txt
RUN pip install --no-cache-dir -r /work/requirements.txt

COPY scripts /work/scripts
COPY deliverables_v2/predictions_v2_replacement.json \
     deliverables_v2/predictions_v2_replacement.sha256 \
     deliverables_v2/predictions.md \
     deliverables_v2/noise_models.json \
     deliverables_v2/predictions.json \
     /work/deliverables_v2/

ENV PYTHONPATH=/work/scripts
ENV PYTHONUNBUFFERED=1
ENV V1_DELIVERABLES=/v1

CMD ["python", "/work/scripts/run_all_v2.py", "--mode", "PILOT"]
