Spaces:
Running
Running
mount secret
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -6,7 +6,8 @@ RUN apt update && apt install wget -y
|
|
| 6 |
RUN pip install -U "huggingface_hub[cli]"
|
| 7 |
|
| 8 |
# Log in to Hugging Face using the CLI
|
| 9 |
-
RUN
|
|
|
|
| 10 |
|
| 11 |
# Download the gated model
|
| 12 |
RUN huggingface-cli download google/gemma-3-4b-it-qat-q4_0-gguf gemma-3-4b-it-q4_0.gguf --local-dir /
|
|
|
|
| 6 |
RUN pip install -U "huggingface_hub[cli]"
|
| 7 |
|
| 8 |
# Log in to Hugging Face using the CLI
|
| 9 |
+
RUN --mount=type=secret,id=HF_TOKEN \
|
| 10 |
+
huggingface-cli login --token $(cat /run/secrets/HF_TOKEN)
|
| 11 |
|
| 12 |
# Download the gated model
|
| 13 |
RUN huggingface-cli download google/gemma-3-4b-it-qat-q4_0-gguf gemma-3-4b-it-q4_0.gguf --local-dir /
|