Skip to content

Commit

Permalink
Merge pull request #311 from tamalsaha/fmt
Browse files Browse the repository at this point in the history
Build static Go binary
  • Loading branch information
knadh authored Apr 11, 2021
2 parents bc8b4d0 + 96f63d0 commit 178ee28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 178ee28

Please sign in to comment.