# Worker image for the agent-cwm GKE eval fleet. # # Carries ONLY the environment (solution runtime + pinned mle-bench + gcloud); # repo code arrives at runtime as a per-run tarball, so iterating on eval code # never requires an image rebuild. Mirrors rubric_gen/SETUP_NEW_POD.sh. FROM python:3.11-slim ENV DEBIAN_FRONTEND=noninteractive PIP_NO_CACHE_DIR=1 PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y --no-install-recommends \ git git-lfs curl ca-certificates unzip pigz gnupg build-essential \ && echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \ > /etc/apt/sources.list.d/gcloud.list \ && curl -sS https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \ && apt-get update && apt-get install -y --no-install-recommends google-cloud-cli \ && rm -rf /var/lib/apt/lists/* # Solution runtime (same set as rubric_gen/SETUP_NEW_POD.sh step 2). RUN pip install anthropic openai tqdm pytest pandas numpy scikit-learn scipy \ xgboost lightgbm pillow scikit-image pydicom seaborn matplotlib RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121 RUN pip install transformers timm google-cloud-storage # mle-bench pinned at the same commit as the RunPod volume, WITH the LFS # leaderboards (grading medal thresholds needs them). Uses mle-bench's own # kaggle pin, so old-style ~/.kaggle/kaggle.json works unpatched. ARG MLEBENCH_PIN=507f92e1138bb6e40dac5c6ee7a6758e6424bf97 RUN git lfs install \ && git clone https://github.com/openai/mle-bench.git /opt/mle-bench \ && cd /opt/mle-bench && git checkout ${MLEBENCH_PIN} && git lfs pull \ && pip install -e /opt/mle-bench ENV MLEBENCH_REPO=/opt/mle-bench COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]