Chengxb888 commited on
Commit
baf289a
1 Parent(s): 3d8dc43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -13,6 +13,6 @@ COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
  RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
15
  RUN pip install --upgrade huggingface_hub
16
- RUN --mount=type=secret,id=login,mode=0444,required=true huggingface-cli login
17
  COPY --chown=user . /app
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
  RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
15
  RUN pip install --upgrade huggingface_hub
16
+ RUN --mount=type=secret,id=login,mode=0444,required=true huggingface-cli login --token $(cat /run/secrets/login) --add-to-git-credential
17
  COPY --chown=user . /app
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]