FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive ENV TZ=Europe/Paris ENV DISPLAY=:99 RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ curl \ ca-certificates \ && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y --no-install-recommends \ x11vnc \ xvfb \ fluxbox \ menu \ dbus-x11 \ && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y --no-install-recommends \ xfwm4 \ xfce4-terminal \ thunar \ python3 \ python3-pip \ && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1-mesa-glx \ libglib2.0-0 \ libnss3 \ libatk1.0-0 \ libatk-bridge2.0-0 \ libcups2 \ libdrm2 \ libxkbcommon0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxrandr2 \ libgbm1 \ libasound2 \ libpango-1.0-0 \ libpangocairo-1.0-0 \ libgtk-3-0 \ fonts-wqy-microhei \ && rm -rf /var/lib/apt/lists/* RUN useradd -m -s /bin/bash user && \ echo "user:user" | chpasswd RUN pip3 install websockify RUN wget -q https://github.com/novnc/noVNC/archive/refs/tags/v1.5.0.tar.gz -O /tmp/novnc.tar.gz && \ tar -xzf /tmp/novnc.tar.gz -C /opt/ && \ mv /opt/noVNC-1.5.0 /opt/noVNC && \ rm /tmp/novnc.tar.gz RUN chown -R user:user /opt/noVNC COPY run.sh /opt/run.sh RUN chmod +x /opt/run.sh RUN mkdir -p /home/user/.config/fluxbox RUN chown -R user:user /home/user EXPOSE 6080 USER user WORKDIR /home/user CMD ["/opt/run.sh"]