New build system (#9)

This commit is contained in:
Ludovic Fernandez
2018-08-09 11:05:36 +02:00
committed by Michael
parent 585d48ff07
commit 72d3d9cd1c
6 changed files with 72 additions and 4 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
.PHONY: default build dependencies image
default: build
build:
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o whoami
dependencies:
dep ensure -v
image:
docker build -t containous/whoami .