File size: 404 Bytes
74f6438 3f9f507 74f6438 3f9f507 74f6438 3f9f507 74f6438 3f9f507 74f6438 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# --workers 2: Better stability for 150 clusters
# --timeout 120: Gives the system more time to boot up
CMD ["gunicorn", "app:app", "--workers", "2", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "--timeout", "120"]
|