Download Dockerfile from Flix010/Tgapi: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/spaces/Flix010/Tgapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Flix010/Tgapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Flix010/Tgapi/resolve/main/Dockerfile
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"] | |