Spaces:
Sleeping
Sleeping
| # Use a modern Python version | |
| FROM python:3.10-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy and install requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the correct port | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |