Spaces:
Sleeping
Sleeping
Download Dockerfile from farishkhaan/code-review: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/spaces/farishkhaan/code-review/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/farishkhaan/code-review/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/farishkhaan/code-review/resolve/main/Dockerfile
479 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN pip install uv --no-cache-dir | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the entire flat structure | |
| COPY . . | |
| RUN pip install --no-cache-dir -e . | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=30s \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1 | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] |