nilasos / Dockerfile
monisedos's picture
Create Dockerfile
1c0ad6c verified
Raw History Blame Contribute Delete
1.03 kB
FROM debian:11-slim
# Biar kalem gak nanya timezone dkk
ENV DEBIAN_FRONTEND=noninteractive
ENV PORT=7860
# Install alat tempur + procps (biar perintah 'ps' ada)
RUN apt-get update && apt-get install -y \
xvfb x11vnc fluxbox wget python3 python3-pip procps net-tools \
&& apt-get clean
# Download noVNC & websockify langsung ke folder yang bener
RUN mkdir -p /opt/noVNC/utils/websockify && \
wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.tar.gz | tar xz -C /opt/noVNC --strip-components=1 && \
wget -qO- https://github.com/novnc/websockify/archive/refs/tags/v0.10.0.tar.gz | tar xz -C /opt/noVNC/utils/websockify --strip-components=1
# Biar pas buka langsung muncul layar VNC, gak pake Directory Listing
RUN cp /opt/noVNC/vnc.html /opt/noVNC/index.html
# Jalanin desktopnya
CMD Xvfb :1 -screen 0 1280x800x16 & \
export DISPLAY=:1 && \
fluxbox & \
x11vnc -display :1 -nopw -listen localhost -xkb -forever & \
/opt/noVNC/utils/novnc_proxy --vnc localhost:5900 --listen 7860