binary1ne commited on
Commit
c273690
·
verified ·
1 Parent(s): cdfc8b3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -25,6 +25,9 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
25
  build-essential \
26
  libsndfile-dev \
27
  software-properties-common \
 
 
 
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  # Clone repository
@@ -67,5 +70,9 @@ EXPOSE 7860
67
  RUN chown -R user:user /web-ui && chmod -R 755 /web-ui
68
 
69
  # Use Conda environment Python explicitly
70
- CMD ["/home/user/miniconda/envs/webui/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
71
-
 
 
 
 
 
25
  build-essential \
26
  libsndfile-dev \
27
  software-properties-common \
28
+ xfce4 xfce4-goodies \
29
+ x11vnc \
30
+ novnc websockify \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  # Clone repository
 
70
  RUN chown -R user:user /web-ui && chmod -R 755 /web-ui
71
 
72
  # Use Conda environment Python explicitly
73
+ # CMD ["/home/user/miniconda/envs/webui/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"]
74
+ CMD bash -c "\
75
+ x11vnc -forever -nopw -display :0 & \
76
+ websockify --web=/usr/share/novnc/ 7860 localhost:5900 & \
77
+ /home/user/miniconda/envs/webui/bin/python webui.py --ip 0.0.0.0 --port 7860 \
78
+ "