FROM python:3.11-slim | |
WORKDIR /webapp | |
COPY . . | |
RUN pip install --upgrade pip | |
RUN pip install --no-cache-dir -r requirements.txt | |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"] | |
EXPOSE 7860 | |
FROM python:3.11-slim | |
WORKDIR /webapp | |
COPY . . | |
RUN pip install --upgrade pip | |
RUN pip install --no-cache-dir -r requirements.txt | |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"] | |
EXPOSE 7860 | |