# Base image FROM ubuntu:20.04 # Environment settings ENV DEBIAN_FRONTEND=noninteractive ENV USER root # Install required packages RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y \ apt-utils && \ apt-get install -f && \ dpkg --configure -a && \ apt-get install -y \ supervisor \ xfce4 \ xfce4-terminal \ novnc \ net-tools \ tigervnc-standalone-server \ wget \ xterm && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Install noVNC RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz \ && tar -xvzf v1.2.0.tar.gz \ && mv noVNC-1.2.0 /usr/share/novnc \ && rm v1.2.0.tar.gz # Set up noVNC RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html # Create a startup script for supervisord RUN mkdir -p /var/log/supervisor COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf # Expose ports EXPOSE 7860 EXPOSE 5901 # CMD CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]