FROM python:3.11-slim WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . EXPOSE 7860 # Change this line to use gunicorn: CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]