fastsdcpu / Dockerfile
sca255's picture
Update Dockerfile
ee25686 verified
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