Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
@@ -5,15 +5,9 @@ RUN apt install xfce4-terminal xfce4 xfce4-goodies xscreensaver sudo curl wget h
|
|
5 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
6 |
RUN mkdir -p /home/user/.vnc
|
7 |
RUN mkdir -p /hoome/user/Desktop/myshell
|
8 |
-
|
9 |
-
ARG VNC_RESOLUTION
|
10 |
-
RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
|
11 |
RUN chmod -R 777 /home/user/.vnc /tmp /home/user/Desktop/myshell
|
12 |
ENV HOME=/home/user \
|
13 |
PATH=/home/user/.local/bin:$PATH
|
14 |
-
# 假设pushcookie文件夹在当前目录下
|
15 |
|
16 |
-
|
17 |
-
RUN chmod +x /home/user/Desktop/myshell/*.sh
|
18 |
-
|
19 |
-
CMD vncserver -SecurityTypes VncAuth -rfbauth /home/user/.vnc/passwd -geometry $VNC_RESOLUTION && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
|
|
|
5 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
6 |
RUN mkdir -p /home/user/.vnc
|
7 |
RUN mkdir -p /hoome/user/Desktop/myshell
|
8 |
+
RUN echo 1234 | vncpasswd -f > /home/user/.vnc/passwd
|
|
|
|
|
9 |
RUN chmod -R 777 /home/user/.vnc /tmp /home/user/Desktop/myshell
|
10 |
ENV HOME=/home/user \
|
11 |
PATH=/home/user/.local/bin:$PATH
|
|
|
12 |
|
13 |
+
CMD vncserver -SecurityTypes VncAuth -rfbauth /home/user/.vnc/passwd && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
|
|
|
|
|
|