Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ARG VERSION_ARG="latest"
  2. FROM scratch AS build-amd64
  3. COPY --from=qemux/qemu-docker:6.08 / /
  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=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:${VERSION_ARG} AS build-arm64
  30. FROM build-${TARGETARCH}
  31. ARG VERSION_ARG="0.00"
  32. RUN echo "$VERSION_ARG" > /run/version
  33. VOLUME /storage
  34. EXPOSE 8006 3389
  35. ENV VERSION="11"
  36. ENV RAM_SIZE="4G"
  37. ENV CPU_CORES="2"
  38. ENV DISK_SIZE="64G"
  39. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]