Download tasks/circuit_workshop/tests/Dockerfile from Tokenwave-AI/REE: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/circuit_workshop/tests/Dockerfile
- Command line
-
hf download hf://datasets/Tokenwave-AI/REE/tasks/circuit_workshop/tests/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/circuit_workshop/tests/Dockerfile
1.46 kB
| FROM python:3.12-slim-bookworm@sha256:34386ef0cb081344d7ec1c103ba398e6e9f64e9ab3a1509accc92a4e24a07258 | |
| RUN apt-get update && apt-get install -y --no-install-recommends g++ time && rm -rf /var/lib/apt/lists/* | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| # ---- the toolchain both sides carry ---- | |
| # A compiled method must build where it is graded, not only where it was written. | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends gcc g++ make \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ---- the package's layers ---- | |
| USER root | |
| ENV OMP_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 MKL_NUM_THREADS=4 NUMEXPR_NUM_THREADS=4 PYTHONDONTWRITEBYTECODE=1 CORE_DIR=/app/core | |
| WORKDIR /tests | |
| COPY package_common.py runner.py grade.py test.sh sealed.json reward_scale.py reward_scale.json /tests/ | |
| RUN chmod 0755 /tests/test.sh && chown root:root /tests/sealed.json /tests/reward_scale.json && chmod 0400 /tests/sealed.json /tests/reward_scale.json | |
| # The method runs in this container, so the core's code it may import is here too, at the same | |
| # path as on the agent side. | |
| COPY core/ /app/core/ | |
| RUN chmod -R a+rX /app/core | |
| # The sealed instances and their answers: readable by root only. | |
| COPY data/ /tests/data/ | |
| RUN chown -R root:root /tests/data \ | |
| && find /tests/data -type d -exec chmod 0500 {} + \ | |
| && find /tests/data -type f -exec chmod 0400 {} + \ | |
| && chmod 0700 /tests | |
| RUN groupadd -g 4242 solver && useradd -u 4242 -g 4242 -M -s /usr/sbin/nologin solver | |