Dockerfile 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM scratch
  2. COPY --from=qemux/qemu-docker:5.06 / /
  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. wimtools \
  16. dos2unix \
  17. cabextract \
  18. genisoimage \
  19. libxml2-utils && \
  20. apt-get clean && \
  21. echo "$VERSION_ARG" > /run/version && \
  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/releases/download/v0.1.248/virtio-win-0.1.248.iso /run/drivers.iso
  27. EXPOSE 8006 3389
  28. VOLUME /storage
  29. ENV RAM_SIZE "4G"
  30. ENV CPU_CORES "2"
  31. ENV DISK_SIZE "64G"
  32. ENV VERSION "win11"
  33. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]