Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ARG VERSION_ARG="latest"
  2. FROM scratch AS build-amd64
  3. COPY --from=qemux/qemu-docker:6.13 / /
  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. jq \
  12. curl \
  13. 7zip \
  14. wsdd \
  15. samba \
  16. xz-utils \
  17. wimtools \
  18. dos2unix \
  19. cabextract \
  20. genisoimage \
  21. libxml2-utils \
  22. libarchive-tools && \
  23. apt-get clean && \
  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=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.44-0/virtio-win-1.9.44.tar.xz /drivers.txz
  28. FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
  29. FROM build-${TARGETARCH}
  30. ARG VERSION_ARG="0.00"
  31. RUN echo "$VERSION_ARG" > /run/version
  32. VOLUME /storage
  33. EXPOSE 8006 3389
  34. ENV VERSION="11"
  35. ENV RAM_SIZE="4G"
  36. ENV CPU_CORES="2"
  37. ENV DISK_SIZE="64G"
  38. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]