Spaces:
Paused
Paused
Download Dockerfile from devdenger/remote-desktop: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/spaces/devdenger/remote-desktop/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devdenger/remote-desktop/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devdenger/remote-desktop/resolve/main/Dockerfile
749 Bytes
| FROM debian:bookworm | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV HOME=/home/user | |
| ENV USER=user | |
| RUN apt-get update && apt-get install -y \ | |
| xfce4 \ | |
| xfce4-terminal \ | |
| tightvncserver \ | |
| novnc websockify \ | |
| chromium \ | |
| dbus-x11 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| WORKDIR $HOME | |
| RUN mkdir -p $HOME/.vnc && \ | |
| echo "codespace" | vncpasswd -f > $HOME/.vnc/passwd && \ | |
| chmod 600 $HOME/.vnc/passwd && \ | |
| echo "#!/bin/bash" > $HOME/.vnc/xstartup && \ | |
| echo "dbus-launch --exit-with-session startxfce4 &" >> $HOME/.vnc/xstartup && \ | |
| chmod +x $HOME/.vnc/xstartup | |
| EXPOSE 7860 | |
| CMD vncserver :1 -geometry 1280x720 -depth 24 && \ | |
| websockify --web /usr/share/novnc/ 7860 localhost:5901 | |