Download Dockerfile from monisedos/minsaso: direct link, hf CLI and curl.
- Browser
- Download file 959 Bytes
-
https://huggingface.co/spaces/monisedos/minsaso/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/monisedos/minsaso/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/monisedos/minsaso/resolve/main/Dockerfile
959 Bytes
| FROM ubuntu:20.04 | |
| # Sumpel kuping si Ubuntu biar gak nanya apa-apa | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Update dan install yang PENTING aja, TANPA tzdata | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| x11vnc \ | |
| xvfb \ | |
| fluxbox \ | |
| wget \ | |
| ca-certificates \ | |
| python3 \ | |
| python3-numpy | |
| # Download noVNC pake wget (Gak pake git biar cepet) | |
| RUN wget -qO- https://github.com/novnc/noVNC/archive/v1.3.0.tar.gz | tar xz -C /opt && \ | |
| mv /opt/noVNC-1.3.0 /opt/noVNC && \ | |
| wget -qO- https://github.com/novnc/websockify/archive/v0.10.0.tar.gz | tar xz -C /opt && \ | |
| mv /opt/websockify-0.10.0 /opt/noVNC/utils/websockify | |
| # Setting biar jalan di port Hugging Face | |
| EXPOSE 7860 | |
| # Command sakti buat jalanin desktop | |
| CMD Xvfb :1 -screen 0 1024x768x16 & \ | |
| export DISPLAY=:1 && \ | |
| fluxbox & \ | |
| x11vnc -display :1 -nopw -listen localhost -xkb & \ | |
| /opt/noVNC/utils/novnc_proxy --vnc localhost:5900 --listen 7860 |