Download Dockerfile from Offex/Browser: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/spaces/Offex/Browser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Offex/Browser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Offex/Browser/resolve/main/Dockerfile
618 Bytes
| FROM debian:bookworm-slim | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| DISPLAY=:1 \ | |
| VNC_RESOLUTION=1280x720 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| tigervnc-standalone-server \ | |
| fluxbox \ | |
| chromium \ | |
| novnc \ | |
| websockify \ | |
| python3 \ | |
| net-tools \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -s /bin/bash user && mkdir -p /home/user /tmp/chrome && chown -R user:user /home/user /tmp | |
| RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| USER user | |
| WORKDIR /home/user | |
| CMD ["/start.sh"] |