FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ENV PORT=7860 WORKDIR /app COPY web_app/requirements.txt /app/web_app/requirements.txt RUN pip install --no-cache-dir -r /app/web_app/requirements.txt gunicorn COPY . /app WORKDIR /app/web_app EXPOSE 7860 CMD ["gunicorn", "-w", "1", "-k", "gthread", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"]