skills-desk / source /Dockerfile
Syndicate604's picture
Skills Desk v1: 40 training tasks, 20 reserved evaluation tasks (frozen)
a785ccd verified
Raw History Blame Contribute Delete
1.9 kB
# Skills Desk OpenEnv server (forked from Science Desk / dnakhla's Terminal Desk v2, Apache-2.0). linux/amd64 only:
# DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t ghcr.io/syndicate604/skills-desk:v1 .
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 agent's own scripts.
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="Skills Desk" \
org.opencontainers.image.description="OpenEnv environment: multi-step tool-use tasks (evidence, computation, transformation, repair, constraints) served through the tbench2_env schema; forked from dnakhla/terminal-desk v2" \
org.opencontainers.image.source="https://huggingface.co/datasets/Syndicate604/skills-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"]