File size: 269 Bytes
87a08f4 9919dd1 12d581b 9919dd1 87a08f4 413097a |
1 2 3 4 5 6 7 8 |
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", "--workers=1", "--threads=1", "--worker-connections=1000", "app:app"]
EXPOSE 7860
|