|
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 |