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

use /run/secrets

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -1,6 +1,4 @@
1
  FROM python:3.11-bookworm
2
- ARG HF_TOKEN
3
- ENV HF_TOKEN=$HF_TOKEN
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  # Set home to the user's home directory
@@ -13,5 +11,5 @@ RUN mkdir $HOME/.cache
13
  RUN chown -R user $HOME/.cache
14
 
15
  RUN pip install -r requirements.txt
16
- RUN python yolo_fire.py
17
  ENTRYPOINT ["streamlit", "run", "demo.py"]
 
1
  FROM python:3.11-bookworm
 
 
2
  RUN useradd -m -u 1000 user
3
  USER user
4
  # Set home to the user's home directory
 
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"]