sca255 commited on
Commit
73846cc
1 Parent(s): 5e77440

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- ARG TOKEN
2
- from python:3.11
3
 
 
 
4
  run apt update -y && apt upgrade -y
5
  copy . .
6
  run git clone https://github.com/rupeshs/fastsdcpu
@@ -9,6 +9,6 @@ workdir fastsdcpu
9
  run pip install --upgrade pip requests
10
  run chmod +x install.sh
11
  run python ../ci.py
12
- run python ../dl.py $TOKEN
13
  run python ../cfg.py
14
  CMD bash ./start-webui.sh
 
 
 
1
 
2
+ from python:3.11
3
+ RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
4
  run apt update -y && apt upgrade -y
5
  copy . .
6
  run git clone https://github.com/rupeshs/fastsdcpu
 
9
  run pip install --upgrade pip requests
10
  run chmod +x install.sh
11
  run python ../ci.py
12
+ run python ../dl.py $(cat /run/secrets/TOKEN)
13
  run python ../cfg.py
14
  CMD bash ./start-webui.sh