tuts4y0u commited on
Commit
d4a1e86
·
1 Parent(s): 10e41df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -3,6 +3,8 @@ RUN apt update
3
  RUN useradd -m -u 1000 user
4
  RUN apt install xfce4-terminal lxde aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git -y
5
  RUN git clone https://github.com/novnc/noVNC.git noVNC
 
 
6
  ENV HOME=/home/user \
7
  PATH=/home/user/.local/bin:$PATH
8
- CMD vncserver -SecurityTypes None -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
 
3
  RUN useradd -m -u 1000 user
4
  RUN apt install xfce4-terminal lxde aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git -y
5
  RUN git clone https://github.com/novnc/noVNC.git noVNC
6
+ RUN echo $VNC_PWD | vncpasswd -f > /home/user/vnc_password
7
+ RUN chmod u+r,g+r,o+r /home/user/vnc_password
8
  ENV HOME=/home/user \
9
  PATH=/home/user/.local/bin:$PATH
10
+ CMD vncserver -SecurityTypes None -PasswordFile /home/user/vnc_password -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860