Build static Go binary
Signed-off-by: Tamal Saha <tamal@appscode.com>
This commit is contained in:
parent
039feef938
commit
96f63d010c
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@ deps:
|
|||
# Build the backend to ./listmonk.
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o ${BIN} -ldflags="-s -w -X 'main.buildString=${BUILDSTR}' -X 'main.versionString=${VERSION}'" cmd/*.go
|
||||
CGO_ENABLED=0 go build -o ${BIN} -ldflags="-s -w -X 'main.buildString=${BUILDSTR}' -X 'main.versionString=${VERSION}'" cmd/*.go
|
||||
|
||||
# Run the backend.
|
||||
.PHONY: run
|
||||
|
|
Loading…
Reference in New Issue