diff --git a/pkg/azurediskplugin/Windows.Dockerfile b/pkg/azurediskplugin/Windows.Dockerfile index 212a40fb8c..2e23ba7afb 100644 --- a/pkg/azurediskplugin/Windows.Dockerfile +++ b/pkg/azurediskplugin/Windows.Dockerfile @@ -1,7 +1,8 @@ ARG ARCH=amd64 ARG OSVERSION -FROM --platform=linux/${ARCH} gcr.io/k8s-staging-e2e-test-images/windows-servercore-cache:1.0-linux-${ARCH}-${OSVERSION} as core - +ARG SERVERCORE_IMAGE=gcr.io/k8s-staging-e2e-test-images/windows-servercore-cache:1.0-linux-${ARCH}-${OSVERSION} +ARG SERVERCORE_PLATFORM=linux/${ARCH} +FROM --platform=${SERVERCORE_PLATFORM} ${SERVERCORE_IMAGE} as core FROM mcr.microsoft.com/windows/nanoserver:${OSVERSION} COPY --from=core /Windows/System32/netapi32.dll /Windows/System32/netapi32.dll