jokyone commited on
Commit
0ac9714
1 Parent(s): dfa1397

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -30,6 +30,13 @@ RUN (gsettings set org.gnome.desktop.screensaver idle-activation-enabled false;
30
  # RUN usermod -a -G fuse user
31
  # RUN chmod -R o+r / 2>/dev/null; exit 0;
32
  RUN hostname hf-server || echo 'failed to set hostname'
 
 
 
 
 
 
 
33
 
34
  # 假设pushcookie文件夹在当前目录下
35
  RUN mkdir -p /home/user/Desktop/myshell
@@ -43,13 +50,6 @@ USER user
43
  # 复制 /tmp/.config/chromium 目录到 /home/user/.config/ 目录,保留文件属性和链接
44
  RUN cp -a /tmp/.config/chromium /home/user/.config/
45
 
46
- RUN git clone https://github.com/novnc/noVNC.git noVNC
47
- RUN mkdir -p /home/user/.vnc
48
- RUN chmod -R 777 /home/user/.vnc /tmp
49
- RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
50
- cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
51
- ENV HOME=/home/user \
52
- PATH=/home/user/.local/bin:$PATH
53
  ARG VNC_RESOLUTION
54
  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
55
 
 
30
  # RUN usermod -a -G fuse user
31
  # RUN chmod -R o+r / 2>/dev/null; exit 0;
32
  RUN hostname hf-server || echo 'failed to set hostname'
33
+ RUN git clone https://github.com/novnc/noVNC.git noVNC
34
+ RUN mkdir -p /home/user/.vnc
35
+ RUN chmod -R 777 /home/user/.vnc /tmp
36
+ RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
37
+ cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
38
+ ENV HOME=/home/user \
39
+ PATH=/home/user/.local/bin:$PATH
40
 
41
  # 假设pushcookie文件夹在当前目录下
42
  RUN mkdir -p /home/user/Desktop/myshell
 
50
  # 复制 /tmp/.config/chromium 目录到 /home/user/.config/ 目录,保留文件属性和链接
51
  RUN cp -a /tmp/.config/chromium /home/user/.config/
52
 
 
 
 
 
 
 
 
53
  ARG VNC_RESOLUTION
54
  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
55