windows_in_docker/Dockerfile
synacktra.work@gmail.com e241426eea chore: split compose into separate files
- Split compose.yml into two files: compose.yml for running and compose.prepare.yml for golden image preparation
- Rename env vars STORAGE->STORAGE_DIR and ISO->ISO_FILE to avoid conflicts with internal script variables
- Remove unused VERSION env var (hardcoded in scripts)
- Update README with new command syntax
2025-11-15 17:08:02 +05:30

46 lines
1.1 KiB
Docker

ARG VERSION_ARG="latest"
FROM scratch AS build-amd64
COPY --from=qemux/qemu:7.27 / /
ARG TARGETARCH
ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN set -eu && \
apt-get update && \
apt-get --no-install-recommends -y install \
samba \
wimtools \
dos2unix \
cabextract \
libxml2-utils \
libarchive-tools && \
wget "https://github.com/gershnik/wsdd-native/releases/download/v1.22/wsddn_1.22_${TARGETARCH}.deb" -O /tmp/wsddn.deb -q && \
dpkg -i /tmp/wsddn.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --chmod=755 ./src /run/
RUN dos2unix /run/*
COPY --chmod=755 ./assets /run/assets
RUN dos2unix /run/assets/*
ADD --chmod=664 https://github.com/qemus/virtiso-whql/releases/download/v1.9.48-0/virtio-win-1.9.48.tar.xz /var/drivers.txz
FROM dockurr/windows-arm:${VERSION_ARG} AS build-arm64
FROM build-${TARGETARCH}
ARG VERSION_ARG="0.00"
RUN echo "$VERSION_ARG" > /run/version
EXPOSE 3389 8006
ENV RAM_SIZE="4G"
ENV CPU_CORES="2"
ENV DISK_SIZE="30G"
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]