Build process cleanup.

This commit is contained in:
Anna Rose 2020-05-25 20:47:48 +00:00
parent 8b28228326
commit e552416673
2 changed files with 6 additions and 3 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
build/

View File

@ -1,4 +1,4 @@
.PHONY: all build lint
.PHONY: all build lint clean
all: lint build
@ -6,6 +6,8 @@ lint:
golint ./...
build:
mkdir -p build/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w' -o build/gpio-webhook-server ./cmd/server
clean:
rm -rf build/
mkdir build/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/gpio-webhook-server ./cmd/server