tuts4y0u commited on
Commit
c6f7c48
1 Parent(s): 68301ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM debian:sid
2
  RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
3
- RUN chmod 2755 /sbin/unix_chkpwd || echo "文件不存在,无视"
4
  RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
5
  RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
6
  RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
@@ -10,7 +10,7 @@ RUN apt update
10
  RUN apt install -y vim bash xfce4-terminal mate-desktop-environment-extras aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git fuse libfuse2 xdotool
11
  RUN apt remove -y lxlock
12
  RUN apt remove -y light-locker xscreensaver-data xscreensaver
13
- RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "配置不存在,无视"
14
  RUN git clone https://github.com/novnc/noVNC.git noVNC
15
  RUN mkdir -p /home/user/.vnc
16
  RUN chmod -R 777 /home/user/.vnc /tmp
 
1
  FROM debian:sid
2
  RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
3
+ RUN [ -r /sbin/unix_chkpwd ] && chmod 2755 /sbin/unix_chkpwd || echo "/sbin/unix_chkpwd skipped"
4
  RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
5
  RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
6
  RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
 
10
  RUN apt install -y vim bash xfce4-terminal mate-desktop-environment-extras aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git fuse libfuse2 xdotool
11
  RUN apt remove -y lxlock
12
  RUN apt remove -y light-locker xscreensaver-data xscreensaver
13
+ RUN [ -r /etc/xdg/lxsession/LXDE/autostart] && sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "/etc/xdg/lxsession/LXDE/autostart skipped"
14
  RUN git clone https://github.com/novnc/noVNC.git noVNC
15
  RUN mkdir -p /home/user/.vnc
16
  RUN chmod -R 777 /home/user/.vnc /tmp