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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -10
Dockerfile CHANGED
@@ -1,22 +1,23 @@
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
5
  RUN apt remove -y light-locker xscreensaver-data xscreensaver
6
- RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
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
13
  RUN chmod -R 777 /home/user/.vnc /tmp
14
- ARG VNC_RESOLUTION
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
 
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 RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
7
+ echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd
8
+ RUN pwconv
9
+ RUN pam-auth-update
10
  RUN apt update
11
  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
12
  RUN apt remove -y lxlock
13
  RUN apt remove -y light-locker xscreensaver-data xscreensaver
 
 
 
 
14
  RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "配置不存在,无视"
15
  RUN git clone https://github.com/novnc/noVNC.git noVNC
16
  RUN mkdir -p /home/user/.vnc
17
  RUN chmod -R 777 /home/user/.vnc /tmp
18
+ RUN RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
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
+ ARG VNC_RESOLUTION
23
  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