Dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. FROM scratch
  2. COPY --from=qemux/qemu-docker:4.20 / /
  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. curl \
  9. 7zip \
  10. wsdd \
  11. samba \
  12. dos2unix \
  13. cabextract \
  14. genisoimage \
  15. libxml2-utils && \
  16. echo "deb http://deb.debian.org/debian/ sid main" >> /etc/apt/sources.list.d/sid.list && \
  17. 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 && \
  18. apt-get update && \
  19. apt-get -t sid --no-install-recommends -y install wimtools && \
  20. apt-get clean && \
  21. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  22. COPY ./src /run/
  23. COPY ./assets /run/assets
  24. ADD https://raw.githubusercontent.com/christgau/wsdd/v0.8/src/wsdd.py /usr/sbin/wsdd
  25. ADD https://github.com/qemus/virtiso/releases/download/v0.1.248/virtio-win-0.1.248.iso /run/drivers.iso
  26. RUN chmod +x /run/*.sh && chmod +x /usr/sbin/wsdd
  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. ARG VERSION_ARG "0.0"
  34. RUN echo "$VERSION_ARG" > /run/version
  35. ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]