mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 13:51:41 +00:00
831bfd36aa
* new go-version, switch to alpine (reduce size by 500mb) * use govendor
17 lines
411 B
Docker
17 lines
411 B
Docker
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
|
|
|
|
ENTRYPOINT "/bin/sh"
|