Spaces:
Runtime error
Runtime error
Download Dockerfile from Quratulain1/Deploy-Backend: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/spaces/Quratulain1/Deploy-Backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Quratulain1/Deploy-Backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Quratulain1/Deploy-Backend/resolve/main/Dockerfile
443 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Expose port 7860 (Hugging Face Spaces default) | |
| EXPOSE 7860 | |
| # Set Python path to include current directory | |
| ENV PYTHONPATH=/app | |
| # Run uvicorn with app.py (which imports from main.py) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |