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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -71,8 +71,14 @@ 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
- "
 
 
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
+ # "
79
  CMD bash -c "\
80
+ Xvfb :0 -screen 0 1280x800x24 & \
81
+ x11vnc -forever -nopw -display :0 -rfbport 5900 & \
82
+ websockify --web=/usr/share/novnc/ 6080 localhost:5900 & \
83
+ cp -r /usr/share/novnc /web-ui/static/novnc && \
84
+ /home/user/miniconda/envs/webui/bin/python /web-ui/webui_with_vnc.py \