Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM scratch
  2. COPY --from=qemux/qemu-docker:5.11 / /
  3. ARG VERSION_ARG="0.0"
  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. curl \
  12. 7zip \
  13. wsdd \
  14. samba \
  15. xz-utils \
  16. wimtools \
  17. dos2unix \
  18. cabextract \
  19. genisoimage \
  20. libxml2-utils && \
  21. apt-get clean && \
  22. echo "$VERSION_ARG" > /run/version && \
  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=755 https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
  27. ADD --chmod=664 https://github.com/qemus/virtiso/releases/download/v0.1.248/virtio-win-0.1.248.tar.xz /drivers.txz
  28. EXPOSE 8006 3389
  29. VOLUME /storage
  30. ENV RAM_SIZE "4G"
  31. ENV CPU_CORES "2"
  32. ENV DISK_SIZE "64G"
  33. ENV VERSION "win11"
  34. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]