Spaces:
Runtime error
Runtime error
Download Dockerfile from YuvanCyber/ChatFilter: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/YuvanCyber/ChatFilter/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/YuvanCyber/ChatFilter/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/YuvanCyber/ChatFilter/resolve/main/Dockerfile
390 Bytes
| # Use a slim Python image | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code and models | |
| COPY . . | |
| # Expose the default port (Hugging Face uses 7860, but can be any port) | |
| EXPOSE 7860 | |
| # Start uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |