FROM ubuntu:22.04 ENV DEBIAN_FRONTEND=noninteractive # Install desktop environment, VNC, and noVNC RUN apt update && apt install -y \ xfce4 xfce4-goodies tightvncserver wget novnc websockify xterm firefox && \ apt clean && rm -rf /var/lib/apt/lists/* # Set VNC password RUN mkdir -p /root/.vnc && \ echo "huggingface" | vncpasswd -f > /root/.vnc/passwd && \ chmod 600 /root/.vnc/passwd # xstartup for GUI RUN echo "#!/bin/bash\nxrdb $HOME/.Xresources\nstartxfce4 &" > /root/.vnc/xstartup && chmod +x /root/.vnc/xstartup # Copy and allow the startup script COPY app.sh /app.sh RUN chmod +x /app.sh # Expose the browser port EXPOSE 7860 # Start script CMD ["/app.sh"]