Spaces:
Sleeping
Sleeping
Download Dockerfile from tejesh916K/comment-guard-api: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/tejesh916K/comment-guard-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tejesh916K/comment-guard-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tejesh916K/comment-guard-api/resolve/main/Dockerfile
431 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pre-download the model to cache it in the image (optional but good for speed) | |
| # We can run a small python script to trigger the download or just let it download on first run. | |
| # For simplicity, we let it download on first run. | |
| COPY . . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |