Spaces:
Sleeping
Sleeping
| # Use lightweight Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose the port HF Spaces expects | |
| EXPOSE 7860 | |
| # Start the app with gunicorn | |
| CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"] | |