shithub: hugo

ref: 8b620f7a8a729943d279e20a3250304e7a7713cf
dir: /Dockerfile/

View raw version
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