five-desks / source /server /Dockerfile
rca-umb's picture
Five Desks v2 (submission five-desks-v2): reasoning scaffold, math-reasoning, final calibration, transfer checks
ae9e249 verified
Raw History Blame Contribute Delete
975 Bytes
FROM python:3.12-slim
LABEL org.opencontainers.image.title="Five Desks v2"
LABEL org.opencontainers.image.description="OpenEnv environment: procedural diligence and reasoning tasks in eight domains: find the caveat, compute with tools, think in metadata, submit a checked answer"
LABEL org.opencontainers.image.source="https://huggingface.co/datasets/rca-umb/five-desks"
LABEL org.opencontainers.image.licenses="Apache-2.0"
WORKDIR /app
COPY requirements.lock /app/requirements.lock
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& pip install --no-cache-dir -r requirements.lock \
&& apt-get purge -y git && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* \
&& useradd --create-home --uid 10001 desk
COPY diligence /app/diligence
COPY server /app/server
COPY openenv.yaml README.md /app/
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
USER desk
EXPOSE 8000
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]