Azeez98 commited on
Commit
3e3d8d9
·
verified ·
1 Parent(s): 0aebc6d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:20.04
2
+
3
+ # Install necessary packages
4
+ RUN apt-get update && apt-get install -y \
5
+ x11vnc \
6
+ xvfb \
7
+ lxde-core \
8
+ lxterminal \
9
+ tightvncserver \
10
+ wget \
11
+ && apt-get clean
12
+
13
+ # Install noVNC
14
+ RUN mkdir -p /opt/novnc && \
15
+ wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz | tar xz --strip 1 -C /opt/novnc
16
+
17
+ # Expose ports
18
+ EXPOSE 6080
19
+
20
+ # Start VNC and noVNC
21
+ CMD ["sh", "-c", "xvfb-run startlxde & x11vnc -forever -usepw -create & /opt/novnc/utils/novnc_proxy --vnc localhost:5900"]