Spaces:
Runtime error
Runtime error
| # Use a lightweight Python image as the base | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files from the current directory on the host to the container's /app directory | |
| COPY . . | |
| # Install Python dependencies listed in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Command to run the application using Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"] | |