monisedos commited on
Commit
bf2a6a3
·
verified ·
1 Parent(s): 1175768

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -3
Dockerfile CHANGED
@@ -1,4 +1,24 @@
1
  FROM ubuntu:22.04
2
- RUN apt-get update && apt-get install -y x11vnc xvfb fluxbox wget
3
- RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.4.0.tar.gz && tar -xvf v1.4.0.tar.gz
4
- CMD Xvfb :1 -screen 0 1024x768x16 & fluxbox & ./noVNC-1.4.0/utils/novnc_proxy --vnc localhost:5900 --listen 7860
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM ubuntu:22.04
2
+
3
+ # Update dan install semua alat tempur yang dibutuhin
4
+ RUN apt-get update && apt-get install -y \
5
+ x11vnc \
6
+ xvfb \
7
+ fluxbox \
8
+ wget \
9
+ git \
10
+ python3 \
11
+ python3-pip
12
+
13
+ # Download noVNC
14
+ RUN git clone https://github.com/novnc/noVNC.git /noVNC
15
+
16
+ # Download websockify (ini yang tadi lo error)
17
+ RUN git clone https://github.com/novnc/websockify /noVNC/utils/websockify
18
+
19
+ # Jalankan desktop di port 7860
20
+ CMD Xvfb :1 -screen 0 1024x768x16 & \
21
+ export DISPLAY=:1 && \
22
+ fluxbox & \
23
+ x11vnc -display :1 -nopw -listen localhost -xkb & \
24
+ /noVNC/utils/novnc_proxy --vnc localhost:5900 --listen 7860