Spaces:
Paused
Paused
Download Dockerfile from HugVPS/win2012r2: direct link, hf CLI and curl.
- Browser
- Download file 944 Bytes
-
https://huggingface.co/spaces/HugVPS/win2012r2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HugVPS/win2012r2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HugVPS/win2012r2/resolve/main/Dockerfile
944 Bytes
| # Use an appropriate base image | |
| FROM ubuntu:latest | |
| # Install QEMU, noVNC, and git | |
| RUN apt-get update && \ | |
| apt-get install -y qemu-system-x86 novnc aria2 websockify git && \ | |
| apt-get clean | |
| # Create a directory for noVNC | |
| RUN mkdir -p /noVNC | |
| # Clone the noVNC repository | |
| RUN git clone https://github.com/novnc/noVNC.git /noVNC | |
| # Expose the ports for VNC and noVNC | |
| EXPOSE 5900 7860 | |
| RUN qemu-img create vm.img 32G | |
| RUN chmod +777 vm.img | |
| RUN cp vm.img /home/ubuntu/vm.img | |
| RUN chmod +777 /home/ubuntu/vm.img | |
| RUN aria2c https://computernewb.com/isos/windows/Windows%20Server%202012%20R2.iso | |
| RUN mv "Windows Server 2012 R2.iso" SimpleOS.iso | |
| RUN chmod +x SimpleOS.iso | |
| RUN cp SimpleOS.iso /home/ubuntu | |
| # Start QEMU and noVNC | |
| CMD /bin/bash -c " \ | |
| nohup qemu-system-x86_64 -cpu Nehalem -m 5G -cdrom ~/SimpleOS.iso -hda ~/vm.img -vnc :0 -daemonize -vga vmware -usbdevice tablet && \ | |
| cd /noVNC && \ | |
| websockify --web . 7860 localhost:5900" |