dazai555 commited on
Commit
c1ac3c6
·
1 Parent(s): c4deb4b
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -15,9 +15,9 @@ RUN mkdir /.cache && chmod 777 /.cache
15
 
16
  COPY ./routers /code/routers
17
 
18
- RUN --mount=type=secret,id=MY_TOKEN,mode=0444,required=true \
19
  git init && \
20
- git remote add origin $(cat /run/secrets/MY_TOKEN)
21
 
22
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
23
  CMD ["uvicorn", "routers.text_models:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
 
16
  COPY ./routers /code/routers
17
 
18
+ RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
19
  git init && \
20
+ git remote add origin $(cat /run/secrets/HUGGINGFACEHUB_API_TOKEN)
21
 
22
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
23
  CMD ["uvicorn", "routers.text_models:app", "--host", "0.0.0.0", "--port", "7860"]