diff options
author | zyfdegh <[email protected]> | 2018-08-31 15:05:52 +0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-08-31 09:05:52 +0200 |
commit | bcbe57c6e9243cbf3823f11b755f57c091cc1866 (patch) | |
tree | b48507ea59e52981c838c87acb34a7c0af545471 /Dockerfile | |
parent | e38e881248b7d20927eab0e56c85732e1acbc45e (diff) | |
download | hugo-bcbe57c6e9243cbf3823f11b755f57c091cc1866.tar.gz hugo-bcbe57c6e9243cbf3823f11b755f57c091cc1866.zip |
Update Dockerfile to Go 1.11
Fixes #5145
Diffstat (limited to 'Dockerfile')
-rwxr-xr-x | Dockerfile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile index 919b02237..2cd4a14d6 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,19 +2,18 @@ # Twitter: https://twitter.com/gohugoio # Website: https://gohugo.io/ -FROM golang:1.10.3-alpine3.7 AS build +FROM golang:1.11-alpine3.7 AS build ENV CGO_ENABLED=0 ENV GOOS=linux +ENV GO111MODULE=on WORKDIR /go/src/github.com/gohugoio/hugo RUN apk add --no-cache \ git \ - musl-dev && \ - go get github.com/golang/dep/cmd/dep + musl-dev COPY . /go/src/github.com/gohugoio/hugo/ -RUN dep ensure -vendor-only && \ - go install -ldflags '-s -w' +RUN go install -ldflags '-s -w' # --- |