release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 2)
559318d verified Download heldout/codereverser__casparser-e3a5f714eb37/environment/Dockerfile from Benjamin-eecs/openrsi-commit-runtime-assets: direct link, hf CLI and curl.
- Browser
- Download file 2.41 kB
-
https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/codereverser__casparser-e3a5f714eb37/environment/Dockerfile
- Command line
-
hf download hf://datasets/Benjamin-eecs/openrsi-commit-runtime-assets/heldout/codereverser__casparser-e3a5f714eb37/environment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/codereverser__casparser-e3a5f714eb37/environment/Dockerfile
2.41 kB
| # Auto-generated by Repo2RLEnv pr_runtime | |
| FROM local/codereverser__casparser | |
| WORKDIR /workspace | |
| # Defensive: ensure git is on PATH at build time. Bootstrap base | |
| # images vary — some (Python slim) don't ship git; some agents | |
| # install it; others don't. Re-installing is a no-op when already | |
| # present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine). | |
| # Install git + ca-certificates. Minimal images (node:alpine) ship | |
| # without CA certs, so HTTPS git fetch fails verification. | |
| RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \ | |
| (apt-get update && apt-get install -y --no-install-recommends git ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/*) || \ | |
| (apk add --no-cache git ca-certificates && update-ca-certificates) || true | |
| # Defensive: the graded F2P/P2P verifier is Python. | |
| # Language-specific bootstrap images (Go/Rust/Node) may not | |
| # ship python3 — install it so test.sh can score F2P/P2P. No-op when | |
| # python3 is already present (every Python-repo image has it). | |
| RUN command -v python3 >/dev/null 2>&1 || \ | |
| (apt-get update && apt-get install -y --no-install-recommends python3 \ | |
| && rm -rf /var/lib/apt/lists/*) || \ | |
| apk add --no-cache python3 || true | |
| # Position the working tree at the PR's base commit so subsequent | |
| # model-patch applications align with the line context the patch | |
| # was authored against. The fetch is a no-op if the commit is | |
| # already in the shallow clone. | |
| RUN git config --global --add safe.directory /workspace \ | |
| && git fetch --depth 1 origin 84cdbdc97389f41a748c72e57b83f9fe89ec12d4 2>/dev/null \ | |
| || git fetch --unshallow origin 2>/dev/null || true | |
| RUN git reset --hard 84cdbdc97389f41a748c72e57b83f9fe89ec12d4 && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache | |
| RUN git checkout -q -B base 84cdbdc97389f41a748c72e57b83f9fe89ec12d4 \ | |
| && git remote remove origin 2>/dev/null || true | |
| RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \ | |
| && git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \ | |
| && git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \ | |
| && git reflog expire --expire=now --all 2>/dev/null || true \ | |
| && git gc --prune=now 2>/dev/null || true | |