FROM python:3.9 WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt COPY . /app # Use Gunicorn with 4 workers CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]