Download Dockerfile from crystal99/vnc: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/spaces/crystal99/vnc/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/crystal99/vnc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/crystal99/vnc/resolve/main/Dockerfile
689 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install desktop environment, VNC, and noVNC | |
| RUN apt update && apt install -y \ | |
| xfce4 xfce4-goodies tightvncserver wget novnc websockify xterm firefox && \ | |
| apt clean && rm -rf /var/lib/apt/lists/* | |
| # Set VNC password | |
| RUN mkdir -p /root/.vnc && \ | |
| echo "huggingface" | vncpasswd -f > /root/.vnc/passwd && \ | |
| chmod 600 /root/.vnc/passwd | |
| # xstartup for GUI | |
| RUN echo "#!/bin/bash\nxrdb $HOME/.Xresources\nstartxfce4 &" > /root/.vnc/xstartup && chmod +x /root/.vnc/xstartup | |
| # Copy and allow the startup script | |
| COPY app.sh /app.sh | |
| RUN chmod +x /app.sh | |
| # Expose the browser port | |
| EXPOSE 7860 | |
| # Start script | |
| CMD ["/app.sh"] | |