kairusama commited on
Commit
32c538e
·
verified ·
1 Parent(s): 67838b9

mount secret

Browse files
Files changed (1) hide show
  1. 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 huggingface-cli login --token $(cat /run/secrets/HF_TOKEN)
 
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 /