Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Force logs to show up in Hugging Face console | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # Install basic build tools | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/* | |
| # Install requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the app | |
| COPY . . | |
| # Run the app | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "8", "--timeout", "0", "app:app"] |