mycfoo commited on
Commit
2956ec4
·
1 Parent(s): 7e66d71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,17 +4,17 @@ RUN useradd -m -u 1000 user
4
  RUN apt install xfce4-terminal lxde aqemu sudo curl wget xdotool 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 mkdir -p /home/user/.vnc
7
- RUN mkdir -p /home/user/myshell
8
  ARG VNC_PWD
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/myshell
12
  ENV HOME=/home/user \
13
  PATH=/home/user/.local/bin:$PATH
14
  # 假设pushcookie文件夹在当前目录下
15
 
16
  ADD pushcookie/ /home/user/myshell/
17
  # 使用RUN指令执行chmod命令给予*.sh文件可执行权限
18
- RUN chmod +x /home/user/myshell/*.sh
19
 
20
  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
 
4
  RUN apt install xfce4-terminal lxde aqemu sudo curl wget xdotool 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 mkdir -p /home/user/.vnc
7
+ RUN mkdir -p /home/user/Desktop/myshell
8
  ARG VNC_PWD
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
  ADD pushcookie/ /home/user/myshell/
17
  # 使用RUN指令执行chmod命令给予*.sh文件可执行权限
18
+ RUN chmod +x /home/user/Desktop/myshell/*.sh
19
 
20
  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