2017-02-22 18:17:14 -05:00
|
|
|
FROM golang:1.8-alpine
|
2016-01-04 02:27:21 -05:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV USER root
|
|
|
|
|
2017-02-22 18:17:14 -05:00
|
|
|
RUN apk update && apk add git make
|
|
|
|
|
2016-01-04 02:27:21 -05:00
|
|
|
# pre-install known dependencies before the source, so we don't redownload them whenever the source changes
|
2017-02-22 18:17:14 -05:00
|
|
|
RUN go get github.com/kardianos/govendor \
|
2017-06-13 13:34:20 -04:00
|
|
|
&& govendor get github.com/gohugoio/hugo
|
2016-01-04 02:27:21 -05:00
|
|
|
|
2017-06-13 13:34:20 -04:00
|
|
|
COPY . $GOPATH/src/github.com/gohugoio/hugo
|
2016-01-04 02:27:21 -05:00
|
|
|
|
2017-06-13 13:34:20 -04:00
|
|
|
RUN cd $GOPATH/src/github.com/gohugoio/hugo \
|
2017-02-22 18:17:14 -05:00
|
|
|
&& make install test
|