From bd64005c48550970f8ff3cada9ff3bd97ebf6275 Mon Sep 17 00:00:00 2001 From: Alex Myasoedov Date: Tue, 7 Feb 2017 20:02:35 -0500 Subject: [PATCH] Make build --- .dockerignore | 4 ++++ .gitignore | 1 + Makefile | 10 ++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .dockerignore create mode 100644 Makefile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..56e3fce --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git/ +.idea/ +*.swp + diff --git a/.gitignore b/.gitignore index ebb631c..c6d3bfd 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ _testmain.go bin/ src/ slides/ +main diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0249bdf --- /dev/null +++ b/Makefile @@ -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) +