Download Dockerfile from Forgets/Test: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Forgets/Test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Forgets/Test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Forgets/Test/resolve/main/Dockerfile
447 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && git lfs install \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN --mount=type=secret,id=HF_TOKEN \ | |
| --mount=type=secret,id=HF_REPO \ | |
| git clone https://user:$(cat /run/secrets/HF_TOKEN)@huggingface.co/spaces/$(cat /run/secrets/HF_REPO).git . | |
| RUN pip install -r requirements.txt | |
| CMD ["python", "app.py"] | |