tuts4y0u commited on
Commit
02b1353
1 Parent(s): 28362c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,8 +4,9 @@ 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
  ARG VNC_PWD
7
- RUN echo $VNC_PWD | vncpasswd -f > /home/user/vnc_password
8
- RUN chmod u+r,g+r,o+r /home/user/vnc_password
 
9
  ENV HOME=/home/user \
10
  PATH=/home/user/.local/bin:$PATH
11
- CMD vncserver -SecurityTypes None -PasswordFile /home/user/vnc_password -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
 
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
  ARG VNC_PWD
7
+ RUN echo $VNC_PWD | vncpasswd -f > /root/.vnc/passwd
8
+ RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
9
+ RUN chmod a+r /root/vnc_password /home/user/vnc_password
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
12
+ CMD vncserver -SecurityTypes None -geometry 1366x768 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860