Spaces:
Paused
Paused
Download Dockerfile from smodusermc/nyarch-vm: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/smodusermc/nyarch-vm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/smodusermc/nyarch-vm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/smodusermc/nyarch-vm/resolve/main/Dockerfile
1.15 kB
| FROM debian:bookworm-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV DISPLAY=:0 | |
| ENV HOME=/home/user | |
| RUN apt-get update && apt-get install -y \ | |
| qemu-system-x86 \ | |
| qemu-utils \ | |
| xvfb \ | |
| x11vnc \ | |
| novnc \ | |
| websockify \ | |
| openbox \ | |
| dbus-x11 \ | |
| curl \ | |
| wget \ | |
| procps \ | |
| net-tools \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m user && \ | |
| mkdir -p /home/user/iso && \ | |
| mkdir -p /home/user/vm && \ | |
| chown -R user:user /home/user | |
| RUN qemu-img create -f qcow2 /home/user/vm/nyarch.qcow2 20G && \ | |
| chown user:user /home/user/vm/nyarch.qcow2 | |
| # Download NyArch ISO directly | |
| RUN wget -O /home/user/iso/nyarch.iso "https://sourceforge.net/projects/nyarchlinux/files/latest/download?hem=77a6c669704e4db96923736024b2b01f5d2a7f20af5e349213b4e495112ac297" || \ | |
| curl -L -o /home/user/iso/nyarch.iso "https://sourceforge.net/projects/nyarchlinux/files/latest/download?hem=77a6c669704e4db96923736024b2b01f5d2a7f20af5e349213b4e495112ac297" || \ | |
| echo "ISO download failed - will need manual upload" | |
| RUN chown -R user:user /home/user | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |