Download Dockerfile from Neon-tech/Tok5: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/Neon-tech/Tok5/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Neon-tech/Tok5/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Neon-tech/Tok5/resolve/main/Dockerfile
723 Bytes
| FROM archlinux:latest | |
| # 1. Update system and install XFCE Desktop, VNC, and noVNC | |
| RUN pacman -Syu --noconfirm && \ | |
| pacman -S --noconfirm \ | |
| xfce4 \ | |
| xfce4-goodies \ | |
| xvfb \ | |
| x11vnc \ | |
| novnc \ | |
| firefox \ | |
| sudo \ | |
| bash | |
| # 2. Setup a non-root user (Hugging Face requirement) | |
| RUN useradd -m -u 1000 user && \ | |
| echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
| USER user | |
| ENV HOME=/home/user | |
| WORKDIR $HOME | |
| # 3. Copy our startup script into the container | |
| COPY --chown=user:user entrypoint.sh /home/user/entrypoint.sh | |
| RUN chmod +x /home/user/entrypoint.sh | |
| # 4. Hugging Face Spaces always look at port 7860 | |
| EXPOSE 7860 | |
| # 5. Start the computer simulation | |
| ENTRYPOINT ["/home/user/entrypoint.sh"] | |