summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: f74e6e5bc19bd23ad6025b2f69dece6009d16663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/spf13/hugo

COPY . $GOPATH/src/github.com/spf13/hugo

RUN cd $GOPATH/src/github.com/spf13/hugo \
 	&& make install test