File size: 470 Bytes
22e35aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
# START: MAX CONCURRENCY GUNICORN COMMAND
# Increased the number of stable 'gthread' workers to 25.
# This significantly boosts concurrent user capacity while maintaining stability.
CMD ["gunicorn", "--workers", "25", "--worker-class", "gthread", "--bind", "0.0.0.0:7860", "--timeout", "720", "app:app"]
# END: MAX CONCURRENCY COMMAND
|