FROM python:3.9-slim # Set working directory WORKDIR /app # Copy everything into the container COPY . . # Install dependencies RUN pip install --no-cache-dir --upgrade -r requirements.txt # Run the app using gunicorn with 4 workers CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]