Download Dockerfile from benchflow/arena-tb2-fix-code-vulnerability: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/spaces/benchflow/arena-tb2-fix-code-vulnerability/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/benchflow/arena-tb2-fix-code-vulnerability/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/benchflow/arena-tb2-fix-code-vulnerability/resolve/main/Dockerfile
1.39 kB
| # Author packaging for upstream OpenEnv tbench2_env (code unchanged, pinned OpenEnv revision). | |
| # One Space per Terminal-Bench 2 task runtime: `openenv push --base-image <task image>` replaces the FROM line. | |
| FROM alexgshaw/fix-code-vulnerability@sha256:cac325252991f823713b2d0441502972901dd782bd67f66c03d9b1e410dac5c0 | |
| # Tier 1: the shared OpenEnv runtime layer, byte-identical in every image that copies it. | |
| COPY --link --from=registry.hf.space/benchflow-arena-openenv-runtime@sha256:c6757a2e0aa0baad80ca6b1e36aaec1b722bd6a0eb3055073e7bd010fa3d42ba / / | |
| # Tier 2: what this environment adds (its two dependencies and its code). | |
| COPY . /opt/tbench2_env | |
| RUN /opt/openenv/venv/bin/python -m pip install --no-cache-dir "camel-ai==0.2.90" "docker>=7.1.0" \ | |
| && /opt/openenv/venv/bin/python -m pip install --no-cache-dir --no-deps /opt/tbench2_env \ | |
| && mv /opt/tbench2_env/tasks /opt/tb2-tasks | |
| # Configuration is part of the image: hosts that run the image (not the Space) see no Space variables. | |
| ENV TB2_MODE=local TB2_TASKS_DIR=/opt/tb2-tasks TB2_WITHHOLD_TESTS=1 TB2_COMMAND_TIMEOUT_S=110 \ | |
| TB2_OUTPUT_DIR=/tmp/tbench2_env_runs MAX_CONCURRENT_ENVS=1 ENABLE_WEB_INTERFACE=false \ | |
| PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 | |
| EXPOSE 8000 | |
| CMD ["/opt/openenv/venv/bin/python", "-m", "uvicorn", "server.app:app", "--app-dir", "/opt/tbench2_env", "--host", "0.0.0.0", "--port", "8000"] | |