BruhVM1 / Dockerfile
hckvps's picture
Update Dockerfile
a2004bb verified
raw
history blame contribute delete
738 Bytes
FROM ubuntu:22.04
# Install necessary packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-x86 qemu-utils aria2 novnc websockify && \
apt-get clean
# Expose VNC and noVNC ports
EXPOSE 5900 7860
RUN aria2c -s16 -x16 https://computernewb.com/isos/windows/Windows%20Server%202008%20R2%20x64.iso
RUN mkdir /vm
RUN chmod +777 /vm/
RUN mv "Windows Server 2008 R2 x64.iso" /vm/main.iso
RUN chmod +777 /vm/main.iso
RUN qemu-img create /vm/main.img 45G
RUN chmod +777 /vm/main.img
# Start QEMU with noVNC on port 7860
CMD ["sh", "-c", "qemu-system-x86_64 -usbdevice tablet -cpu Nehalem -m 8G -vnc :0 -hda /vm/main.img -cdrom /vm/main.iso & websockify --web=/usr/share/novnc 7860 localhost:5900"]