Datasets:
Download source/Dockerfile from Syndicate604/science-desk: direct link, hf CLI and curl.
- Browser
- Download file 1.91 kB
-
https://huggingface.co/datasets/Syndicate604/science-desk/resolve/main/source/Dockerfile
- Command line
-
hf download hf://datasets/Syndicate604/science-desk/source/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/Syndicate604/science-desk/resolve/main/source/Dockerfile
1.91 kB
| # Science Desk OpenEnv server (forked from dnakhla's Terminal Desk v2, Apache-2.0). linux/amd64 only: | |
| # DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t ghcr.io/syndicate604/science-desk:v5 . | |
| FROM python:3.12-slim | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends jq bc sqlite3 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # The server lives outside /app: /app is the task workspace, as in the operator's task images. | |
| WORKDIR /opt/terminal_desk | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 \ | |
| PYTHONPATH=/opt/terminal_desk | |
| # OpenEnv at the arena's pinned revision (86a180e), vendored as a wheel. | |
| COPY vendor ./vendor | |
| RUN pip install ./vendor/openenv-0.6.1.dev0-py3-none-any.whl && rm -rf ./vendor | |
| # Scientific Python for the generators and for the agent's own scripts, as in SkillsBench science images. | |
| RUN pip install numpy==1.26.4 scipy==1.13.1 pandas==2.2.2 astropy==6.1.4 | |
| COPY terminal_desk ./terminal_desk | |
| COPY openenv.yaml ./ | |
| # The server runs as root; agent commands run as nobody and cannot read the | |
| # generators, the grader or the server's memory. | |
| RUN chmod -R go-rwx /opt/terminal_desk && mkdir -p /app | |
| LABEL org.opencontainers.image.title="Science Desk" \ | |
| org.opencontainers.image.description="OpenEnv environment: SkillsBench-shaped natural-science artifact tasks served through the tbench2_env schema; forked from dnakhla/terminal-desk v2" \ | |
| org.opencontainers.image.source="https://huggingface.co/datasets/Syndicate604/science-desk" \ | |
| org.opencontainers.image.licenses="Apache-2.0" | |
| EXPOSE 8000 | |
| HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2)" || exit 1 | |
| CMD ["uvicorn", "terminal_desk.server.app:app", "--host", "0.0.0.0", "--port", "8000"] | |