11# Use Windows Server Core as the base image
2- FROM mcr.microsoft.com/windows/servercore:ltsc2022 AS builder
2+ FROM mcr.microsoft.com/windows/servercore:ltsc2025 AS builder
33
44# Define build arguments
55ARG VERSION="latest"
@@ -28,9 +28,9 @@ RUN Invoke-WebRequest -Uri "https://github.com/box-project/box/releases/download
2828RUN Invoke-WebRequest -Uri "https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-windows-x64.exe" -OutFile ".build/bin/spc.exe"
2929
3030# Download required PHP extensions
31- RUN .build/bin/spc.exe download micro `
32- --for-extensions=ctype,dom,filter,libxml,mbstring,phar,simplexml,sockets,tokenizer,xml,xmlwriter,curl `
33- --with-php=8.3 `
31+ RUN .build/bin/spc.exe download micro \
32+ --for-extensions=ctype,dom,filter,libxml,mbstring,phar,simplexml,sockets,tokenizer,xml,xmlwriter,curl \
33+ --with-php=8.3 \
3434 --prefer-pre-built
3535
3636# Install UPX for compression
@@ -40,8 +40,8 @@ RUN .build/bin/spc.exe install-pkg upx
4040RUN .build/bin/spc.exe doctor --auto-fix
4141
4242# Build the self-executable binary with required extensions
43- RUN .build/bin/spc.exe build "ctype,dom,filter,libxml,mbstring,phar,simplexml,sockets,tokenizer,xml,xmlwriter,curl" `
44- --build-micro `
43+ RUN .build/bin/spc.exe build "ctype,dom,filter,libxml,mbstring,phar,simplexml,sockets,tokenizer,xml,xmlwriter,curl" \
44+ --build-micro \
4545 --with-upx-pack
4646
4747# Default command to display info
0 commit comments