Download Dockerfile from clone3/VNCDock: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/clone3/VNCDock/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/clone3/VNCDock/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/clone3/VNCDock/resolve/main/Dockerfile
1.03 kB
| # Base image | |
| FROM ubuntu:20.04 | |
| # Environment settings | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV USER root | |
| # Install required packages | |
| RUN apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install -y \ | |
| apt-utils && \ | |
| apt-get install -f && \ | |
| dpkg --configure -a && \ | |
| apt-get install -y \ | |
| supervisor \ | |
| xfce4 \ | |
| xfce4-terminal \ | |
| novnc \ | |
| net-tools \ | |
| tigervnc-standalone-server \ | |
| wget \ | |
| xterm && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Install noVNC | |
| RUN wget https://github.com/novnc/noVNC/archive/refs/tags/v1.2.0.tar.gz \ | |
| && tar -xvzf v1.2.0.tar.gz \ | |
| && mv noVNC-1.2.0 /usr/share/novnc \ | |
| && rm v1.2.0.tar.gz | |
| # Set up noVNC | |
| RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html | |
| # Create a startup script for supervisord | |
| RUN mkdir -p /var/log/supervisor | |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| # Expose ports | |
| EXPOSE 7860 | |
| EXPOSE 5901 | |
| # CMD | |
| CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] | |