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
266e1c10ec
commit
fc2457a3f0
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
|
# Update VPATH so make finds .gopathok
|
||||||
VPATH := $(VPATH):$(GOPATH)
|
VPATH := $(VPATH):$(GOPATH)
|
||||||
|
SHRINKFLAGS := -s -w
|
||||||
LDFLAGS := -ldflags '-X main.gitCommit=${GIT_COMMIT} -X main.buildInfo=${BUILD_INFO} -X main.kpodVersion=${KPOD_VERSION}'
|
LDFLAGS := -ldflags '${SHRINKFLAGS} -X main.gitCommit=${GIT_COMMIT} -X main.buildInfo=${BUILD_INFO} -X main.kpodVersion=${KPOD_VERSION}'
|
||||||
|
|
||||||
all: binaries crio.conf docs
|
all: binaries crio.conf docs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue