Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. FROM scratch AS build-amd64
  2. COPY --from=qemux/qemu-docker:6.06 / /
  3. ARG DEBCONF_NOWARNINGS="yes"
  4. ARG DEBIAN_FRONTEND="noninteractive"
  5. ARG DEBCONF_NONINTERACTIVE_SEEN="true"
  6. RUN set -eu && \
  7. apt-get update && \
  8. apt-get --no-install-recommends -y install \
  9. bc \
  10. curl \
  11. 7zip \
  12. wsdd \
  13. samba \
  14. xz-utils \
  15. wimtools \
  16. dos2unix \
  17. cabextract \
  18. genisoimage \
  19. libxml2-utils \
  20. libarchive-tools && \
  21. apt-get clean && \
  22. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  23. COPY --chmod=755 ./src /run/
  24. COPY --chmod=755 ./assets /run/assets
  25. ADD --chmod=755 https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
  26. ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.43-0/virtio-win-1.9.43.tar.xz /drivers.txz
  27. FROM dockurr/windows-arm:2.22 AS build-arm64
  28. FROM build-${TARGETARCH}
  29. ARG VERSION_ARG="0.0"
  30. RUN echo "$VERSION_ARG" > /run/version
  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"]