Spaces:
Runtime error
Runtime error
| FROM python:3.12-slim | |
| WORKDIR /app | |
| Copy the requirements file into the container | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install gunicorn | |
| Copy all application code (including app.py and any static files) into the container | |
| COPY . . | |
| CMD exec gunicorn --bind :7860 --workers 1 --threads 8 app:app |