Spaces:
Sleeping
Sleeping
Download Dockerfile from arywk-40/code-review-env: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arywk-40/code-review-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/Dockerfile
400 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=7860 | |
| ENV WORKERS=1 | |
| ENV MAX_CONCURRENT_ENVS=100 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "uvicorn app:app --host ${HOST} --port ${PORT} --workers ${WORKERS}"] | |