Spaces:
Paused
Paused
File size: 607 Bytes
4071910 7c8dfb7 b680f03 4071910 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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" |