docker-windows/Dockerfile
Alice King Tai Poon 潘景泰 e066a98b51
Update Dockerfile
2024-07-18 15:29:06 +08:00

41 lines
1.1 KiB
Docker

FROM scratch
COPY --from=qemux/qemu-docker:latest / /
ARG VERSION_ARG="0.0"
ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN sudo lspci | egrep -i 'vga|3d|display'
RUN set -eu && \
apt-get --no-install-recommends -yfm --update install \
bc \
curl \
7zip \
wsdd \
samba \
xz-utils \
wimtools \
dos2unix \
cabextract \
genisoimage \
libxml2-utils && \
apt-get clean && \
echo "$VERSION_ARG" > /run/version && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --chmod=755 ./src /run/
COPY --chmod=755 ./assets /run/assets
ADD --chmod=755 https://raw.githubusercontent.com/christgau/wsdd/master/src/wsdd.py /usr/sbin/wsdd
ADD --chmod=664 https://github.com/qemus/virtiso/releases/download/v0.1.248/virtio-win-0.1.248.tar.xz /drivers.txz
EXPOSE 8006 3389
VOLUME /storage
ENV RAM_SIZE "8G"
ENV CPU_CORES "8"
ENV DISK_SIZE "512G"
ENV VERSION "win11e"
ENTRYPOINT ["sudo", "/usr/bin/tini", "-s", "/run/entry.sh"]