chore: update docker file and compose config

This commit is contained in:
synacktra.work@gmail.com 2025-11-12 15:25:53 +05:30
parent 3386df26cd
commit b205169c50
2 changed files with 21 additions and 11 deletions

View File

@ -1,5 +1,3 @@
# syntax=docker/dockerfile:1
ARG VERSION_ARG="latest"
FROM scratch AS build-amd64
@ -25,7 +23,10 @@ RUN set -eu && \
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
@ -35,12 +36,11 @@ FROM build-${TARGETARCH}
ARG VERSION_ARG="0.00"
RUN echo "$VERSION_ARG" > /run/version
VOLUME /storage
EXPOSE 3389 8006
ENV VERSION="11"
ENV RAM_SIZE="4G"
ENV CPU_CORES="2"
ENV DISK_SIZE="64G"
ENV DISK_SIZE="30G"
ENV VERSION="win11e"
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]

View File

@ -1,19 +1,29 @@
services:
windows:
image: dockurr/windows
image: windows-local:latest
container_name: windows
environment:
VERSION: "11"
VERSION: "win11e"
STORAGE: "${STORAGE:?Error: required env var not set}"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
volumes:
- ./windows:/storage
restart: always
stop_grace_period: 2m
volumes:
- ${STORAGE}:/storage
prepare-golden-image:
extends:
service: windows
profiles:
- prepare-golden-image
environment:
ISO: "${ISO:?Error: required env var not set}"
volumes:
- ${ISO}:/custom.iso
- ${STORAGE}:/storage