Datasets:
Download Dockerfile from Louistiti/openenv-python-repair: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/datasets/Louistiti/openenv-python-repair/resolve/main/Dockerfile
- Command line
-
hf download hf://datasets/Louistiti/openenv-python-repair/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/Louistiti/openenv-python-repair/resolve/main/Dockerfile
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"] | |