Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM scratch
  2. COPY --from=qemux/qemu-docker:4.26 / /
  3. ARG DEBCONF_NOWARNINGS "yes"
  4. ARG DEBIAN_FRONTEND "noninteractive"
  5. ARG DEBCONF_NONINTERACTIVE_SEEN "true"
  6. RUN apt-get update && \
  7. apt-get --no-install-recommends -y install \
  8. bc \
  9. curl \
  10. 7zip \
  11. wsdd \
  12. samba \
  13. dos2unix \
  14. cabextract \
  15. genisoimage \
  16. libxml2-utils && \
  17. echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list.d/sid.list && \
  18. echo -e "Package: *\nPin: release n=trixie\nPin-Priority: 900\nPackage: *\nPin: release n=sid\nPin-Priority: 400" | tee /etc/apt/preferences.d/preferences > /dev/null && \
  19. apt-get update && \
  20. apt-get -t sid --no-install-recommends -y install wimtools && \
  21. apt-get clean && \
  22. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  23. COPY ./src /run/
  24. COPY ./assets /run/assets
  25. ADD https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
  26. ADD https://github.com/qemus/virtiso/releases/download/v0.1.248/virtio-win-0.1.248.iso /run/drivers.iso
  27. RUN chmod +x /run/*.sh && chmod +x /usr/sbin/wsdd
  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. ARG VERSION_ARG "0.0"
  35. RUN echo "$VERSION_ARG" > /run/version
  36. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]