Skip to content

Commit

Permalink
Create slimmer go binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
amacneil committed May 22, 2016
1 parent 5b84f2b commit 08dd47d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DC := docker-compose
BUILD_FLAGS := -ldflags '-s'

all: clean container lint test build

Expand All @@ -17,5 +18,5 @@ test:
$(DC) run dbmate go test -v

build: clean
$(DC) run -e GOARCH=386 dbmate go build -o dist/dbmate-linux-i386
$(DC) run -e GOARCH=amd64 dbmate go build -o dist/dbmate-linux-amd64
$(DC) run -e GOARCH=386 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-i386
$(DC) run -e GOARCH=amd64 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64

0 comments on commit 08dd47d

Please sign in to comment.