Added VNC server

This commit is contained in:
2024-08-15 14:54:29 +02:00
parent 666790050b
commit 7941107844
+43 -1
View File
@@ -193,4 +193,46 @@ WORKDIR /root
RUN echo "export PATH=$PATH:/opt/riscv/bin" >> /root/.bashrc
# Pass commands into container
ENTRYPOINT ["bash", "-lc"]
# ENTRYPOINT ["bash", "-lc"]
RUN apt update -qq && apt install -y --no-install-recommends \
software-properties-common \
apt-transport-https \
ca-certificates \
lsb-release \
net-tools \
dirmngr \
gnupg \
git \
curl \
wget \
file \
unzip \
zip \
vim \
mc \
&& rm -rf /var/lib/apt/lists/*
# Install X11
RUN apt update -qq && apt install -y --no-install-recommends \
xvfb \
x11vnc \
at-spi2-core \
dbus-x11 \
x11-utils \
mwm \
xterm \
xfonts-base \
xfonts-75dpi \
xfonts-100dpi \
x11-xserver-utils \
&& rm -rf /var/lib/apt/lists/*
# VNC server
RUN mkdir ~/.vnc
RUN x11vnc -storepasswd 1234 ~/.vnc/passwd
RUN echo "mwm &" > ~/.xinitrc
RUN echo "xsetroot -solid grey" >> ~/.xinitrc
RUN chmod +x ~/.xinitrc
EXPOSE 5900
CMD ["x11vnc", "-repeat", "-forever", "-usepw", "-create"]