diff --git a/Dockerfile b/Dockerfile index 8f28b5b..9b7f5e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG NANOSERVER_VERSION=ltcs2022 +ARG WINDOWS_BASE_IMAGE=mcr.microsoft.com/windows/nanoserver:ltcs2022 FROM --platform=$BUILDPLATFORM golang:1.21 as builder ARG TARGETARCH @@ -22,7 +22,7 @@ COPY ./static /static COPY ./config /config ENTRYPOINT ["/goldpinger", "--static-file-path", "/static"] -FROM mcr.microsoft.com/windows/nanoserver:$NANOSERVER_VERSION AS windows +FROM $WINDOWS_BASE_IMAGE AS windows COPY --from=builder /w/bin/goldpinger /goldpinger.exe COPY ./static /static COPY ./config /config diff --git a/docker-bake.hcl b/docker-bake.hcl index cc76cb4..fa4447a 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -35,7 +35,7 @@ target "windows-nanoserver-ltsc2019" { target = "windows" args = { - NANOSERVER_VERSION = "ltsc2019" + WINDOWS_BASE_IMAGE = "mcr.microsoft.com/windows/nanoserver:ltsc2019" } } @@ -47,6 +47,6 @@ target "windows-nanoserver-ltsc2022" { target = "windows" args = { - NANOSERVER_VERSION = "ltsc2022" + WINDOWS_BASE_IMAGE = "mcr.microsoft.com/windows/nanoserver:ltsc2022" } }