File size: 973 Bytes
4d2cd2c
91162bb
 
 
 
4d2cd2c
1afa8a2
57a5292
 
4ba5a73
6c4b3d9
c9bd518
57a5292
 
d63a7c7
c9bd518
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM debian:bookworm

# ngrok repo
RUN curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" && tee /etc/apt/sources.list.d/ngrok.list && apt update

RUN /usr/sbin/useradd -m -u 1000 user
RUN apt install xfce4-terminal xfce4 xfce4-goodies xscreensaver sudo curl wget htop tigervnc-standalone-server python3-pip python3 git ngrok -y
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 &&