Spaces:
Sleeping
Sleeping
| # Use a slim Python base image | |
| FROM python:3.11-slim | |
| # Set work directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Expose Flask port | |
| EXPOSE 8988 | |
| # Run the server | |
| CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8988", "app:app"] | |