hckvps commited on
Commit
bd413c4
·
verified ·
1 Parent(s): 75331bc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Install necessary packages
4
+ RUN apt-get update && \
5
+ apt-get install -y qemu-system-x86 qemu-utils aria2 novnc websockify && \
6
+ apt-get clean
7
+
8
+ # Expose VNC and noVNC ports
9
+ EXPOSE 5900 7860
10
+ RUN aria2c -s16 -x16 https://computernewb.com/isos/windows/Windows%20Server%202008%20R2%20x64.iso
11
+ RUN mkdir /vm
12
+ RUN chmod +777 /vm/
13
+ RUN mv "Windows Server 2008 R2 x64.iso" /vm/main.iso
14
+ RUN chmod +777 /vm/main.iso
15
+ RUN qemu-img create /vm/main.img 45G
16
+ RUN chmod +777 /vm/main.img
17
+ # Start QEMU with noVNC on port 7860
18
+ CMD ["sh", "-c", "qemu-system-x86_64 -cpu Nehalem -m 8G -vnc :0 -hda /vm/main.img -cdrom /vm/main.iso & websockify --web=/usr/share/novnc 7860 localhost:5900"]