diff --git a/vertical-pod-autoscaler/Dockerfile b/vertical-pod-autoscaler/Dockerfile index daf58e1fd31b..3aea01ae80e6 100644 --- a/vertical-pod-autoscaler/Dockerfile +++ b/vertical-pod-autoscaler/Dockerfile @@ -8,16 +8,16 @@ ENV GO111MODULE "on" ENV GOARCH=${TARGETARCH} WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/recommender-external -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender-external-metrics --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-recommender-external-metrics -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/admission-controller -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-admission-controller --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-admission-controller -buildvcs=false --ldflags "-s" WORKDIR /go/src/k8s.io/autoscaler/vertical-pod-autoscaler/pkg/updater -RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-updater --ldflags "-s" +RUN env CGO_ENABLED=0 GOARCH=${TARGETARCH} GOOS=linux go build -o vpa-updater -buildvcs=false --ldflags "-s" FROM $BASE_IMAGE