Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application | |
| COPY app ./app | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set port environment variable (Hugging Face Spaces uses port 7860) | |
| ENV PORT=7860 | |
| # Run with gunicorn | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app.main:app"] | |