Browse Source

Add building for docker in weed/Makefile

Building without `CGO_ENABLED=0` and using the executable in docker can result in a docker container exiting with an error
pull/7571/head
Krzysztof Osiniak 4 days ago
committed by GitHub
parent
commit
a32dc2cc3f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/Makefile

3
weed/Makefile

@ -9,6 +9,9 @@ all: install
install:
go install -ldflags="-s -w"
build_docker:
CGO_ENABLED=0 go build -ldflags="-s -w"
clean:
go clean $(SOURCE_DIR)
rm -f $(BINARY)

Loading…
Cancel
Save