FROM python:3.10 WORKDIR /app # -------- install python deps -------- COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # -------- copy app -------- COPY app.py . EXPOSE 7860 CMD ["gunicorn", "-w", "2", "-k", "gthread", "-b", "0.0.0.0:7860", "app:app"]