File size: 521 Bytes
959cd8f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Use Kali Linux base image
FROM kalilinux/kali-rolling
# Install necessary packages
RUN apt update && apt install -y \
kali-linux-default \
novnc \
websockify \
xfce4 \
xfce4-goodies \
tightvncserver && \
apt clean
# Set up VNC server
RUN mkdir ~/.vnc && echo "password" | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd
# Set the default command to run the VNC server
CMD ["tightvncserver", ":1", "-geometry", "1280x800", "-depth", "24"]
# Expose the ports for noVNC
EXPOSE 6080
|