Make build

This commit is contained in:
Alex Myasoedov 2017-02-07 20:02:35 -05:00
parent be7a85765c
commit bd64005c48
3 changed files with 15 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
.git/
.idea/
*.swp

1
.gitignore vendored
View file

@ -23,3 +23,4 @@ _testmain.go
bin/
src/
slides/
main

10
Makefile Normal file
View file

@ -0,0 +1,10 @@
REPO=msoedov/hacker-slides
build:
@GOOS=linux CGO_ENABLE=0 go build main.go
@docker build -t $(REPO) .
push:
@docker push $(REPO)