File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ COPY apis/go.mod apis/go.sum apis/
1414COPY hack/tools/go.mod hack/tools/go.sum hack/tools/
1515COPY pkg/hardwareutils/go.mod pkg/hardwareutils/go.sum pkg/hardwareutils/
1616RUN go mod download
17- ARG LDFLAGS=-extldflags=-static
17+ ARG LDFLAGS=-s -w - extldflags=-static
1818
1919COPY . .
2020RUN CGO_ENABLED=0 GO111MODULE=on go build -a -ldflags "${LDFLAGS}" -o baremetal-operator main.go
Original file line number Diff line number Diff line change @@ -263,8 +263,7 @@ generate: $(CONTROLLER_GEN) ## Generate code
263263docker : generate manifests # # Build the docker image
264264 docker build . -t ${IMG} \
265265 --build-arg http_proxy=$(http_proxy ) \
266- --build-arg https_proxy=$(https_proxy ) \
267- --build-arg LDFLAGS=" -s -w -extldflags=-static"
266+ --build-arg https_proxy=$(https_proxy )
268267
269268.PHONY : docker-debug
270269docker-debug : generate manifests # # Build the docker image with debug info
You can’t perform that action at this time.
0 commit comments