Update Dockerfile
Browse files- Dockerfile +23 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,24 @@
|
|
| 1 |
FROM ubuntu:22.04
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|