lemonteaa commited on
Commit
00bfa8f
·
1 Parent(s): 8aa87fa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -12,4 +12,8 @@ WORKDIR /code/fastsdcpu
12
  RUN chmod a+x install.sh && chmod a+x start-webui.sh
13
  RUN /code/fastsdcpu/install.sh || { exit 0; }
14
 
15
- CMD ["./start-webui.sh"]
 
 
 
 
 
12
  RUN chmod a+x install.sh && chmod a+x start-webui.sh
13
  RUN /code/fastsdcpu/install.sh || { exit 0; }
14
 
15
+ RUN apt-get install -y sudo
16
+ RUN useradd -rm -d /home/hf -s /bin/bash -g root -G sudo -u 1001 hf
17
+ USER hf
18
+
19
+ CMD ["sudo", "./start-webui.sh"]