test / Dockerfile
lachine's picture
Update Dockerfile
c9bd518 verified
raw
history blame
967 Bytes
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 -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 &&