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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -6
Dockerfile CHANGED
@@ -1,6 +1,8 @@
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 \
@@ -8,15 +10,18 @@ RUN apt-get update && apt-get install -y \
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 & \
 
1
  FROM ubuntu:22.04
2
 
3
+ # Biar gak ditanya-tanya soal lokasi (Auto-Asia)
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
  RUN apt-get update && apt-get install -y \
7
  x11vnc \
8
  xvfb \
 
10
  wget \
11
  git \
12
  python3 \
13
+ python3-pip \
14
+ tzdata
15
 
16
+ # Set timezone ke Asia/Jakarta secara paksa biar gak berhenti di tengah
17
+ RUN ln -fs /usr/share/zoneinfo/Asia/Jakarta /etc/localtime && \
18
+ dpkg-reconfigure --frontend noninteractive tzdata
19
 
20
+ # Download noVNC dan kawan-kawan
21
+ RUN git clone https://github.com/novnc/noVNC.git /noVNC
22
  RUN git clone https://github.com/novnc/websockify /noVNC/utils/websockify
23
 
24
+ # Eksekusi Desktop
25
  CMD Xvfb :1 -screen 0 1024x768x16 & \
26
  export DISPLAY=:1 && \
27
  fluxbox & \