mingyang91 commited on
Commit
50e648a
·
verified ·
1 Parent(s): 033c694

use /run/secrets

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -11,5 +11,6 @@ RUN mkdir $HOME/.cache
11
  RUN chown -R user $HOME/.cache
12
 
13
  RUN pip install -r requirements.txt
14
- RUN HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python yolo_fire.py
 
15
  ENTRYPOINT ["streamlit", "run", "demo.py"]
 
11
  RUN chown -R user $HOME/.cache
12
 
13
  RUN pip install -r requirements.txt
14
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
15
+ HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python yolo_fire.py
16
  ENTRYPOINT ["streamlit", "run", "demo.py"]