Spaces:
Paused
Paused
Download Dockerfile from compare/tg: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/compare/tg/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/compare/tg/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/compare/tg/resolve/main/Dockerfile
436 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y curl unzip ffmpeg | |
| RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \ | |
| curl -L -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)" "https://huggingface.co/spaces/compare/project/resolve/main/tg.zip" -o app.zip && \ | |
| unzip app.zip -d . && \ | |
| rm app.zip | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| CMD ["python3", "app.py"] |