Download Dockerfile from getapi/ss: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/getapi/ss/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/getapi/ss/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/getapi/ss/resolve/main/Dockerfile
558 Bytes
| FROM python:3.11 | |
| ARG DEPS | |
| WORKDIR /code | |
| RUN $DEPS | |
| RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \ | |
| --mount=type=secret,id=APP_URL,mode=0444,required=true \ | |
| curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL) | |
| COPY . . | |
| RUN chmod -R 777 /code | |
| CMD python -c 'import asyncio; from app import get_html; asyncio.run(get_html())' && gunicorn app:app --bind 0.0.0.0:7860 --timeout 120 --workers 4 --worker-class gevent & python -c 'import asyncio; from app import update_html; asyncio.run(update_html())' |