Webtoplinuxwebtop / Dockerfile
NicheBean's picture
Update Dockerfile
4071910 verified
Raw History Blame Contribute Delete
607 Bytes
FROM ubuntu:22.04
# Install dependencies
RUN apt-get update && apt-get install -y \
chromium-browser \
x11vnc \
xvfb \
fluxbox \
net-tools \
wget \
socat \
&& rm -rf /var/lib/apt/lists/*
# Set up environment variables
ENV DISPLAY=:1
ENV RESOLUTION=1280x720
EXPOSE 7860
# Start Xvfb, Fluxbox, Chromium, and noVNC with port forwarding
CMD bash -c "\
Xvfb $DISPLAY -screen 0 ${RESOLUTION}x24 & \
fluxbox & \
chromium-browser --no-sandbox --disable-gpu & \
x11vnc -display $DISPLAY -nopw -forever -shared & \
socat TCP-LISTEN:7860,fork TCP:127.0.0.1:5900"