Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Dowideit <SvenDowideit@home.org.au>2016-01-04 10:27:21 +0300
committerSteve Francia <steve.francia@gmail.com>2016-01-04 20:47:23 +0300
commit7bc5d3663fc0fdb87bb21235fe3b3cc534129ce1 (patch)
treeae11620a906b053767eb8806ed9a5995175a388e /Makefile
parentbc48b4606ab436a17f663249482c41704d8b57c0 (diff)
Use a Docker container to build hugo
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
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