rca-umb's picture
Five Desks v5 collapse test (positive control)
ab59633 verified
Raw History Blame Contribute Delete
1.05 kB
FROM python:3.12-slim
LABEL org.opencontainers.image.title="Five Desks"
LABEL org.opencontainers.image.description="OpenEnv environment: procedural diligence tasks in eight domains: find the caveat, compute with tools, 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/
# The server runs as root so it can run model-written code as `nobody`, which cannot read /app.
RUN chmod -R go-rwx /app
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
EXPOSE 8000
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]