diff --git a/Dockerfile b/Dockerfile index ca165a986..e0da7d834 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,11 @@ FROM golang:1.9.0-alpine3.6 AS build RUN apk add --no-cache --virtual git musl-dev RUN go get github.com/kardianos/govendor -RUN govendor get github.com/gohugoio/hugo + +ADD vendor/vendor.json /go/src/github.com/gohugoio/hugo/vendor/vendor.json WORKDIR /go/src/github.com/gohugoio/hugo -RUN rm -f $GOPATH/bin/hugo +RUN govendor sync +ADD . /go/src/github.com/gohugoio/hugo/ RUN go install -ldflags '-s -w' FROM alpine:3.6