Update Dockerfile to Go 1.11

Fixes #5145
This commit is contained in:
zyfdegh 2018-08-31 15:05:52 +08:00 committed by Bjørn Erik Pedersen
parent e38e881248
commit bcbe57c6e9

View file

@ -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'
# ---