1
0

Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ARG VERSION_ARG="latest"
  2. FROM scratch AS build-amd64
  3. COPY --from=qemux/qemu:7.00 / /
  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. 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. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  24. COPY --chmod=755 ./src /run/
  25. COPY --chmod=755 ./assets /run/assets
  26. ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.45-0/virtio-win-1.9.45.tar.xz /drivers.txz
  27. FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
  28. FROM build-${TARGETARCH}
  29. ARG VERSION_ARG="0.00"
  30. RUN echo "$VERSION_ARG" > /run/version
  31. VOLUME /storage
  32. EXPOSE 80 3389
  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"]