2
0

Dockerfile 1.1 KB

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