summaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..67dd91209
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM golang:1.8-alpine
+
+ENV GOPATH /go
+ENV USER root
+
+RUN apk update && apk add git make
+
+# pre-install known dependencies before the source, so we don't redownload them whenever the source changes
+RUN go get github.com/kardianos/govendor \
+ && govendor get github.com/gohugoio/hugo
+
+COPY . $GOPATH/src/github.com/gohugoio/hugo
+
+RUN cd $GOPATH/src/github.com/gohugoio/hugo \
+ && make install test