File size: 532 Bytes
3cb6a2e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a6a891a
3cb6a2e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:latest

# Install necessary packages
RUN apt-get update && apt-get install -y \
    xfce4 \
    xfce4-goodies \
    tightvncserver \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Set up a VNC password (change 'your_password' to your desired password)
RUN mkdir ~/.vnc && echo "nehajignesh" | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd

# Expose VNC port
EXPOSE 7860
RUN hostname -I
# Start VNC server when the container launches
CMD ["vncserver", "-localhost", "-geometry", "1280x720", ":0"]