FROM python:3.12 WORKDIR /app COPY --chown=1000 . /app RUN chmod -R 777 /app RUN mkdir /.cache \ && chmod -R 777 /.cache RUN pip install --break-system-packages --no-cache-dir --requirement requirements.txt CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--worker-class", "gevent"]