Spaces:
Sleeping
Sleeping
Download Dockerfile from oedevs/test_embossed_effect: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/oedevs/test_embossed_effect/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/oedevs/test_embossed_effect/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/oedevs/test_embossed_effect/resolve/main/Dockerfile
478 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt && \ | |
| pip install --no-cache-dir huggingface_hub | |
| ARG HF_TOKEN | |
| RUN --mount=type=secret,id=HF_TOKEN \ | |
| hf download "depth-anything/Depth-Anything-V2-Large-hf" --token $(cat /run/secrets/HF_TOKEN) | |
| COPY --chown=user . . | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| CMD ["python", "app.py"] | |