Download source/codedesk/Dockerfile from rca-umb/five-desks-code: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/rca-umb/five-desks-code/resolve/main/source/codedesk/Dockerfile
- Command line
-
hf download hf://datasets/rca-umb/five-desks-code/source/codedesk/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/rca-umb/five-desks-code/resolve/main/source/codedesk/Dockerfile
1.16 kB
| FROM python:3.12-slim | |
| LABEL org.opencontainers.image.title="Five Desks Code" | |
| LABEL org.opencontainers.image.description="OpenEnv environment: agentic coding on real open-source libraries from every arena domain" | |
| 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 | |
| COPY codedesk/requirements-tools.txt /app/requirements-tools.txt | |
| RUN apt-get update && apt-get install -y --no-install-recommends git ffmpeg imagemagick \ | |
| && pip install --no-cache-dir -r requirements.lock -r requirements-tools.txt \ | |
| && apt-get purge -y git && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* \ | |
| && pip uninstall -y pip | |
| COPY codedesk /app/codedesk | |
| # The server runs as root so it can run the policy's commands as `nobody`, which cannot read /app (the bug catalog | |
| # and the original library sources live there). | |
| RUN rm -rf /app/codedesk/build && chmod -R go-rwx /app | |
| ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "codedesk.server.app:app", "--host", "0.0.0.0", "--port", "8000"] | |