Spaces:
Paused
Paused
Download Dockerfile from NicheBean/Webtoplinuxwebtop: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/NicheBean/Webtoplinuxwebtop/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NicheBean/Webtoplinuxwebtop/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NicheBean/Webtoplinuxwebtop/resolve/main/Dockerfile
607 Bytes
| FROM ubuntu:22.04 | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| chromium-browser \ | |
| x11vnc \ | |
| xvfb \ | |
| fluxbox \ | |
| net-tools \ | |
| wget \ | |
| socat \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set up environment variables | |
| ENV DISPLAY=:1 | |
| ENV RESOLUTION=1280x720 | |
| EXPOSE 7860 | |
| # Start Xvfb, Fluxbox, Chromium, and noVNC with port forwarding | |
| CMD bash -c "\ | |
| Xvfb $DISPLAY -screen 0 ${RESOLUTION}x24 & \ | |
| fluxbox & \ | |
| chromium-browser --no-sandbox --disable-gpu & \ | |
| x11vnc -display $DISPLAY -nopw -forever -shared & \ | |
| socat TCP-LISTEN:7860,fork TCP:127.0.0.1:5900" |