Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
|
| 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,7 @@ workdir fastsdcpu
|
|
| 9 |
run pip install --upgrade pip requests
|
| 10 |
run chmod +x install.sh
|
| 11 |
run python ../ci.py
|
| 12 |
-
|
|
|
|
| 13 |
run python ../cfg.py
|
| 14 |
CMD bash ./start-webui.sh
|
|
|
|
| 1 |
|
| 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 |
run pip install --upgrade pip requests
|
| 10 |
run chmod +x install.sh
|
| 11 |
run python ../ci.py
|
| 12 |
+
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
| 13 |
+
python ../dl.py $(cat /run/secrets/TOKEN)
|
| 14 |
run python ../cfg.py
|
| 15 |
CMD bash ./start-webui.sh
|