File size: 1,156 Bytes
e042d72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]