Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends libsm6 libxext6 && rm -rf /var/lib/apt/lists/* | |
| ENV PORT 7860 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY index.html . | |
| COPY app.py . | |
| CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --timeout 120 app:app |