# Use a base Debian image | |
FROM debian:latest | |
# Set non-interactive mode | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN chmod +777 /* | |
# Install necessary packages | |
RUN apt-get update && \ | |
apt-get install -y xfce4 xfce4-goodies tightvncserver novnc websockify && \ | |
apt-get clean | |
RUN chmod +777 /root | |
RUN chmod +777 / | |
# Expose ports for noVNC | |
EXPOSE 6080 | |
# Start the VNC server and noVNC | |
CMD ["sh", "-c", "USER=root vncserver :1 -geometry 1280x720 -depth 24 && websockify --web=/usr/share/novnc/ 6080 localhost:5901"] |