tuts4y0u commited on
Commit
3a2b3d9
1 Parent(s): a82fc64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
  FROM debian:sid
2
- RUN mount -o remount,rw /
3
  RUN apt update
4
  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
5
  RUN apt remove -y lxlock
@@ -8,7 +7,6 @@ RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
8
  RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
9
  RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
10
  RUN chmod 2755 /sbin/unix_chkpwd || echo "文件不存在,无视"
11
- RUN pam-auth-update
12
  RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "配置不存在,无视"
13
  RUN git clone https://github.com/novnc/noVNC.git noVNC
14
  RUN mkdir -p /home/user/.vnc
@@ -17,6 +15,8 @@ ARG VNC_RESOLUTION
17
  RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
18
  echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd && \
19
  cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
 
 
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH
22
  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
 
1
  FROM debian:sid
 
2
  RUN apt update
3
  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
4
  RUN apt remove -y lxlock
 
7
  RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
8
  RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
9
  RUN chmod 2755 /sbin/unix_chkpwd || echo "文件不存在,无视"
 
10
  RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "配置不存在,无视"
11
  RUN git clone https://github.com/novnc/noVNC.git noVNC
12
  RUN mkdir -p /home/user/.vnc
 
15
  RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
16
  echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd && \
17
  cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
18
+ RUN pwconv
19
+ RUN pam-auth-update
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH
22
  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