File size: 515 Bytes
6bff696 fcfb111 6bff696 cab3cd6 fcfb111 6bff696 cab3cd6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 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"] |