parkerjj commited on
Commit
768a233
1 Parent(s): 693eb6c

注释掉 Dockerfile 中的 git clone 命令以避免构建时的错误

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -34,8 +34,8 @@ RUN --mount=type=secret,id=HF_Token,mode=0444,required=true \
34
  cat /run/secrets/HF_Token > /HF_Token
35
 
36
  # Get secret SECRET_EXAMPLE and clone it as repo at buildtime
37
- RUN --mount=type=secret,id=HF_Token,mode=0444,required=true \
38
- git clone $(cat /run/secrets/HF_Token)
39
 
40
 
41
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
34
  cat /run/secrets/HF_Token > /HF_Token
35
 
36
  # Get secret SECRET_EXAMPLE and clone it as repo at buildtime
37
+ #RUN --mount=type=secret,id=HF_Token,mode=0444,required=true \
38
+ # git clone $(cat /run/secrets/HF_Token)
39
 
40
 
41
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]