tuts4y0u commited on
Commit
e34130a
1 Parent(s): c81e98d

Create Dockerfile.mate

Browse files
Files changed (1) hide show
  1. Dockerfile.mate +23 -0
Dockerfile.mate ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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