File size: 685 Bytes
46f161f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:26.04

# 1. Install QEMU, UEFI (OVMF), and TPM tools
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
    qemu-system-x86 \
    qemu-utils \
    ovmf \
    swtpm \
    net-tools \
    novnc \
    python3-websockify \
    python3-numpy \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# 2. Setup Directories
WORKDIR /vm

# 3. Copy Source QCOW2 Image (Read-Only Source)
COPY win10-cua-image/win10-cua.qcow2 /vm/source.qcow2

# 4. Copy the Entrypoint Script
COPY entrypoint.sh /scripts/entrypoint.sh
RUN chmod +x /scripts/entrypoint.sh

EXPOSE 5900 3389 8006 2222 50051 50052 9090

# 5. Define Entrypoint
ENTRYPOINT ["/entrypoint.sh"]