Spaces:
Sleeping
Sleeping
Download Dockerfile from Hamza0426/Chatbot_Backend: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/Hamza0426/Chatbot_Backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Hamza0426/Chatbot_Backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Hamza0426/Chatbot_Backend/resolve/main/Dockerfile
359 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Copy and install dependencies first (better Docker cache) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend code | |
| COPY app.py . | |
| # HuggingFace Spaces requires port 7860 | |
| EXPOSE 7860 | |
| # Run Flask via gunicorn | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "app:app"] |