ajinkyamulay's picture
v6: Repo Repair (four vendored libraries, mutation catalog, AST grading)
df6fa5a verified
Raw History Blame Contribute Delete
1.02 kB
FROM python:3.12-slim
LABEL org.opencontainers.image.title="OpenEnv Analyst Workbench"
LABEL org.opencontainers.image.description="Procedural multi-domain analysis tasks with a sandboxed python tool and exact verifiers"
LABEL org.opencontainers.image.licenses="MIT"
RUN apt-get update && apt-get install -y --no-install-recommends git tini && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY workbench /app/workbench
COPY repo_repair /app/repo_repair
COPY repo_libs /app/repo_libs
COPY server /app/server
COPY openenv.yaml README.md /app/
# The server runs as root only so the python tool can drop to `nobody`; task sources stay unreadable to it.
RUN chmod -R go-rwx /app
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
EXPOSE 8000
# tini as PID 1 reaps orphaned sandbox processes, which uvicorn would leave as zombies.
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]