summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorSven Dowideit <[email protected]>2016-01-04 17:27:21 +1000
committerSteve Francia <[email protected]>2016-01-04 12:47:23 -0500
commit7bc5d3663fc0fdb87bb21235fe3b3cc534129ce1 (patch)
treeae11620a906b053767eb8806ed9a5995175a388e /Makefile
parentbc48b4606ab436a17f663249482c41704d8b57c0 (diff)
downloadhugo-7bc5d3663fc0fdb87bb21235fe3b3cc534129ce1.tar.gz
hugo-7bc5d3663fc0fdb87bb21235fe3b3cc534129ce1.zip
Use a Docker container to build hugo
Signed-off-by: Sven Dowideit <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 823428fb9..46e75fce7 100644
--- a/Makefile
+++ b/Makefile
@@ -25,3 +25,9 @@ install-gitinfo:
no-git-info:
go build -o hugo main.go
+docker:
+ docker build -t hugo .
+ docker rm -f hugo-build || true
+ docker run --name hugo-build hugo ls /go/bin
+ docker cp hugo-build:/go/bin/hugo .
+ docker rm hugo-build