File size: 864 Bytes
4d2cd2c
5beeec8
4d2cd2c
5a14b8d
 
 
57a5292
 
4ba5a73
6c4b3d9
c9bd518
57a5292
 
d63a7c7
1026de7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM debian:bookworm
RUN apt update
RUN /usr/sbin/useradd -m -u 1000 user
RUN apt install xfce4-terminal xfce4 xfce4-goodies xscreensaver sudo wget htop tigervnc-standalone-server python3-pip python3 git -y
RUN wget -O ngrok.tgz https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz
RUN tar -xvzf ngrok.tgz -C /usr/local/bin
RUN git clone https://github.com/novnc/noVNC.git noVNC
RUN mkdir -p /home/user/.vnc
RUN mkdir -p /hoome/user/Desktop/myshell
RUN echo 1234 | vncpasswd -f > /home/user/.vnc/passwd
RUN ngrok config add-authtoken 2LF0UeuZxH3eJ0XQByrNO8SF82v_67bfyD5SVw7vcMpJVGd2a
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH
RUN mkdir -p /home/user/.Xauthority
CMD vncserver -SecurityTypes VncAuth -rfbauth /home/user/.vnc/passwd && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860 && ngrok http localhost:7860