FROM python:3.11-slim

# The verifier RUNS the agent's predict_rbe.py, which may use any of the scientific stack.
RUN pip install --no-cache-dir \
    numpy==1.26.4 \
    scipy==1.13.0 \
    pandas==2.2.2 \
    scikit-learn==1.4.2 \
    pytest==8.2.0

RUN mkdir -p /app/submission /app/data

# Hidden held-out queries + ground truth (verifier-only, never in the agent image).
# train_survival.csv is also placed so the agent's model can re-fit at grade time if it
# chooses to; it is training data the agent already has, not answer data.
COPY data/ /app/tests/data/
RUN cp /app/tests/data/train_survival.csv /app/data/train_survival.csv

COPY test_rbe_model.py /app/tests/test_rbe_model.py

WORKDIR /app
