You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Build the manager as a statically compiled binary so it has no dependencies
27
28
# libc, muscl, etc.
28
-
FROM --platform=linux/amd64 ${GOLANG_IMAGE} as builder
29
+
FROM --platform=${TARGET_PLATFORM} ${GOLANG_IMAGE} AS builder
29
30
30
31
# This build arg is the version to embed in the CSI binary
31
32
ARG VERSION=unknown
@@ -38,14 +39,14 @@ COPY go.mod go.sum ./
38
39
COPY pkg/ pkg/
39
40
COPY cmd/ cmd/
40
41
ENV CGO_ENABLED=0
41
-
ENV GOPROXY${GOPROXY:-https://proxy.golang.org}
42
+
ENV GOPROXY=${GOPROXY:-https://proxy.golang.org}
42
43
RUN GOOS=windows GOARCH=amd64 go build -a -ldflags="-w -s -extldflags=static -X sigs.k8s.io/vsphere-csi-driver/v3/pkg/csi/service.Version=${VERSION}" -o ./bin/vsphere-csi.windows_amd64 cmd/vsphere-csi/main.go
0 commit comments