tuts4y0u commited on
Commit
ffc0c2b
1 Parent(s): 514217a

Create Dockerfile.lxde

Browse files
Files changed (1) hide show
  1. Dockerfile.lxde +20 -0
Dockerfile.lxde ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:sid
2
+ RUN apt update
3
+ RUN useradd -m -u 1000 user
4
+ RUN chown root:shadow /etc/shadow
5
+ RUN apt install xfce4-terminal lxde aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git fuse libfuse2 -y
6
+ RUN apt remove xscreensaver-data --no-install-recommends -y
7
+ RUN apt remove xscreensaver --no-install-recommends -y
8
+ RUN apt remove light-locker --no-install-recommends -y
9
+ RUN apt autoclean --no-install-recommends && apt autoremove --no-install-recommends
10
+ RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart
11
+ RUN git clone https://github.com/novnc/noVNC.git noVNC
12
+ RUN mkdir -p /home/user/.vnc
13
+ ARG VNC_RESOLUTION
14
+ RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
15
+ echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd && \
16
+ cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
17
+ RUN chmod -R 777 /home/user/.vnc /tmp
18
+ ENV HOME=/home/user \
19
+ PATH=/home/user/.local/bin:$PATH
20
+ 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