| FROM ubuntu:24.04 | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| g++ python3 python3-pip curl ca-certificates ripgrep && \ | |
| pip3 install --break-system-packages requests && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # The agent CLI (claude | codex) is installed at trial time by the harness, | |
| # pinned to the `version` in the experiment's agent spec — so only the selected | |
| # CLI lands in the container, and nothing here bakes a CLI build. Node 22 is a | |
| # runtime prerequisite for codex (installed via npm at trial time), not a CLI. | |
| ENV NVM_DIR="/root/.nvm" | |
| RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash && \ | |
| . "$NVM_DIR/nvm.sh" && \ | |
| nvm install 22 && nvm alias default 22 && \ | |
| ln -sf "$(which node)" /usr/local/bin/node && \ | |
| ln -sf "$(which npm)" /usr/local/bin/npm | |
| ENV CLAUDE_CODE_MAX_OUTPUT_TOKENS=128000 | |
| WORKDIR /app | |