From 5e8b940b5de53d153418b8f79ca4b3ac6f66fd67 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Wed, 20 Dec 2023 16:26:19 -0600 Subject: [PATCH] chore: move cns from servercore to nanoserver (#2454) Signed-off-by: Evan Baker --- cns/windows.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cns/windows.Dockerfile b/cns/windows.Dockerfile index 52bec2e7b66..24a9b2aa4cb 100644 --- a/cns/windows.Dockerfile +++ b/cns/windows.Dockerfile @@ -7,7 +7,7 @@ WORKDIR /usr/local/src COPY . . RUN GOOS=windows CGO_ENABLED=0 go build -a -o /usr/local/bin/azure-cns.exe -ldflags "-X main.version="$VERSION" -X "$CNS_AI_PATH"="$CNS_AI_ID"" -gcflags="-dwarflocationlists=true" cns/service/*.go -FROM mcr.microsoft.com/windows/servercore:${OS_VERSION} +FROM mcr.microsoft.com/windows/nanoserver:${OS_VERSION} COPY --from=builder /usr/local/src/cns/kubeconfigtemplate.yaml kubeconfigtemplate.yaml COPY --from=builder /usr/local/src/npm/examples/windows/setkubeconfigpath.ps1 setkubeconfigpath.ps1 COPY --from=builder /usr/local/bin/azure-cns.exe azure-cns.exe