Skip to content

Commit

Permalink
[vpa] buildvcs=false
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenque committed Jul 5, 2023
1 parent 472338b commit 4cf9e05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vertical-pod-autoscaler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4cf9e05

Please sign in to comment.