avfranco commited on
Commit
01309b3
·
1 Parent(s): d7caffa

ea4all-docker-load-private-from-public-spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -16,10 +16,10 @@ ENV HOME=/home/user \
16
  # Get secret OPENAI_API_KEY and clone it as repo at buildtime / changed required to true
17
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
18
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
19
- cat /run/secrets/HF_TOKEN > cli_token
20
  RUN pip install -U "huggingface_hub[cli]"
21
  RUN git init & git config --global credential.helper store
22
- RUN huggingface-cli login --token $(cat cli_token) --add-to-git-credential
23
 
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME
 
16
  # Get secret OPENAI_API_KEY and clone it as repo at buildtime / changed required to true
17
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
18
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
19
+ cat /run/secrets/HF_TOKEN > /home/user/cli_token
20
  RUN pip install -U "huggingface_hub[cli]"
21
  RUN git init & git config --global credential.helper store
22
+ RUN huggingface-cli login --token $(cat /home/user/cli_token) --add-to-git-credential
23
 
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME