File size: 617 Bytes
46c55eb
73846cc
92ebc68
0d8a444
4db8e3f
 
fa0ef0e
d191fd5
ee25686
08d2640
d191fd5
 
1b3b0d4
205a645
16ff2f4
b4a4e35
d191fd5
d4631b4
c620806
92ebc68
 
16ff2f4
0ce08d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

from python:3.11

run apt update -y && apt upgrade -y
RUN apt install -y libgl1-mesa-glx
RUN apt install ffmpeg libsm6 libxext6 libglib2.0-0 -y
copy . .
RUN useradd -m -u 1000 user
run git clone https://github.com/sca255/fastsdcpu-hf_spaces_fork fastsdcpu
run chown -R user /fastsdcpu
user user
workdir /fastsdcpu
run pwd
run pip install --upgrade pip requests
run chmod +x install.sh
run python ../ci.py

RUN mkdir /home/user/app
RUN mkdir /home/user/app/fastsdcpu
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
  python ../dl.py $(cat /run/secrets/TOKEN)
run python ../cfg.py
CMD bash ./start-webui.sh