xcx0902 commited on
Commit
16229ad
·
verified ·
1 Parent(s): a2d55d6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +42 -2
Dockerfile CHANGED
@@ -1,3 +1,43 @@
1
- FROM dockurr/windows
 
2
 
3
- EXPOSE 8006
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ARG VERSION_ARG="latest"
2
+ FROM scratch AS build-amd64
3
 
4
+ COPY --from=qemux/qemu:7.11 / /
5
+
6
+ ARG DEBCONF_NOWARNINGS="yes"
7
+ ARG DEBIAN_FRONTEND="noninteractive"
8
+ ARG DEBCONF_NONINTERACTIVE_SEEN="true"
9
+
10
+ RUN set -eu && \
11
+ apt-get update && \
12
+ apt-get --no-install-recommends -y install \
13
+ wsdd \
14
+ samba \
15
+ wimtools \
16
+ dos2unix \
17
+ cabextract \
18
+ libxml2-utils \
19
+ libarchive-tools \
20
+ netcat-openbsd && \
21
+ apt-get clean && \
22
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
23
+
24
+ COPY --chmod=755 ./src /run/
25
+ COPY --chmod=755 ./assets /run/assets
26
+
27
+ ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.45-0/virtio-win-1.9.45.tar.xz /var/drivers.txz
28
+
29
+ FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
30
+ FROM build-${TARGETARCH}
31
+
32
+ ARG VERSION_ARG="0.00"
33
+ RUN echo "$VERSION_ARG" > /run/version
34
+
35
+ VOLUME /storage
36
+ EXPOSE 3389 8006
37
+
38
+ ENV VERSION="11"
39
+ ENV RAM_SIZE="4G"
40
+ ENV CPU_CORES="2"
41
+ ENV DISK_SIZE="64G"
42
+
43
+ ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]