Spaces:
Sleeping
Sleeping
| # Dockerfile for Hugging Face Spaces | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy application code first | |
| COPY api.py . | |
| COPY src/ ./src/ | |
| # Install dependencies LAST to force rebuild | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port (HF Spaces uses port 7860) | |
| EXPOSE 7860 | |
| # Run the API | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] | |