1
0

Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM scratch AS build-amd64
  2. COPY --from=qemux/qemu-docker:6.06 / /
  3. ARG VERSION_ARG="0.0"
  4. ARG DEBCONF_NOWARNINGS="yes"
  5. ARG DEBIAN_FRONTEND="noninteractive"
  6. ARG DEBCONF_NONINTERACTIVE_SEEN="true"
  7. RUN set -eu && \
  8. apt-get update && \
  9. apt-get --no-install-recommends -y install \
  10. bc \
  11. curl \
  12. 7zip \
  13. wsdd \
  14. samba \
  15. xz-utils \
  16. wimtools \
  17. dos2unix \
  18. cabextract \
  19. genisoimage \
  20. libxml2-utils \
  21. libarchive-tools && \
  22. apt-get clean && \
  23. echo "$VERSION_ARG" > /run/version && \
  24. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  25. COPY --chmod=755 ./src /run/
  26. COPY --chmod=755 ./assets /run/assets
  27. ADD --chmod=755 https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
  28. ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.43-0/virtio-win-1.9.43.tar.xz /drivers.txz
  29. FROM dockurr/windows-arm:2.22 AS build-arm64
  30. FROM build-${TARGETARCH}
  31. EXPOSE 8006 3389
  32. VOLUME /storage
  33. ENV VERSION="11"
  34. ENV RAM_SIZE="4G"
  35. ENV CPU_CORES="2"
  36. ENV DISK_SIZE="64G"
  37. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]