Spaces:
Sleeping

Tgapi / Dockerfile
Flix010's picture
Update Dockerfile
74f6438 verified
Raw History Blame Contribute Delete
404 Bytes
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"]