Strip out debuginfo and other content to make images smaller
This can be overriden by passing in the make SHRINKFLAGS= Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
6835afaa54
commit
655b47fdc4
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -35,8 +35,8 @@ GOPKGBASEDIR := $(shell dirname "$(GOPKGDIR)")
|
|||
|
||||
# Update VPATH so make finds .gopathok
|
||||
VPATH := $(VPATH):$(GOPATH)
|
||||
|
||||
LDFLAGS := -ldflags '-X main.gitCommit=${GIT_COMMIT} -X main.buildInfo=${BUILD_INFO} -X main.kpodVersion=${KPOD_VERSION}'
|
||||
SHRINKFLAGS := -s -w
|
||||
LDFLAGS := -ldflags '${SHRINKFLAGS} -X main.gitCommit=${GIT_COMMIT} -X main.buildInfo=${BUILD_INFO} -X main.kpodVersion=${KPOD_VERSION}'
|
||||
|
||||
all: binaries crio.conf docs
|
||||
|
||||
|
|
Loading…
Reference in a new issue