openenv-python-repair / Dockerfile
Louistiti's picture
feat: publish verified Python Repair Lab tasks and source
13e5e7d verified
Raw History Blame Contribute Delete
476 Bytes
FROM python:3.11-slim-bookworm
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
RUN useradd --create-home --uid 10001 repair
COPY server.py tasks.json openenv.yaml /app/
USER repair
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
EXPOSE 8000
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]