Spaces:
Running
Running
| # Use Python base image | |
| FROM python:3.10-slim | |
| # Set work directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your code | |
| COPY . . | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # Run your Flask app with gunicorn | |
| CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"] | |