reach-vb HF staff commited on
Commit
4245cee
1 Parent(s): 8fb8950

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -54,6 +54,9 @@ RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
54
  COPY ./requirements.txt /tmp/requirements.txt
55
  RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
56
 
 
 
 
57
  COPY --chown=1000 . ${HOME}/app
58
  ENV PYTHONPATH=${HOME}/app \
59
  PYTHONUNBUFFERED=1 \
 
54
  COPY ./requirements.txt /tmp/requirements.txt
55
  RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
56
 
57
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
58
+ huggingface-cli login --token=$(cat /run/secrets/HF_TOKEN)
59
+
60
  COPY --chown=1000 . ${HOME}/app
61
  ENV PYTHONPATH=${HOME}/app \
62
  PYTHONUNBUFFERED=1 \