Download Dockerfile from getapi/cht3: direct link, hf CLI and curl.
- Browser
- Download file 498 Bytes
-
https://huggingface.co/spaces/getapi/cht3/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/getapi/cht3/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/getapi/cht3/resolve/main/Dockerfile
498 Bytes
| FROM mcr.microsoft.com/playwright/python:v1.40.0-jammy | |
| ARG DEPS | |
| WORKDIR /code | |
| RUN chmod 777 /code | |
| RUN $DEPS | |
| RUN mkdir -p /.cache && chmod 777 /.cache | |
| 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 . . | |
| CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "4", "--worker-class", "gevent"] |