diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-21 11:58:03 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-21 11:58:03 -0700 |
| commit | 1494221b08854f6358fe810662bb003816572425 (patch) | |
| tree | defea6727c57939516fbefb940983a3a5a4df0f0 /docker | |
| parent | b38895734036f70879b5a342bdd7dbc222ecf55d (diff) | |
| download | seaweedfs-1494221b08854f6358fe810662bb003816572425.tar.xz seaweedfs-1494221b08854f6358fe810662bb003816572425.zip | |
reduce binary size
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/Makefile b/docker/Makefile index 9e9d771c2..b473245e8 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -8,7 +8,7 @@ cgo ?= 0 binary: export SWCOMMIT=$(shell git rev-parse --short HEAD) export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)" - cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)" && mv weed ../docker/ + cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/ binary_race: options = -race binary_race: cgo = 1 |
