mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
e38e881248
commit
bcbe57c6e9
1 changed files with 4 additions and 5 deletions
|
@ -2,19 +2,18 @@
|
||||||
# Twitter: https://twitter.com/gohugoio
|
# Twitter: https://twitter.com/gohugoio
|
||||||
# Website: https://gohugo.io/
|
# 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 CGO_ENABLED=0
|
||||||
ENV GOOS=linux
|
ENV GOOS=linux
|
||||||
|
ENV GO111MODULE=on
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/gohugoio/hugo
|
WORKDIR /go/src/github.com/gohugoio/hugo
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
musl-dev && \
|
musl-dev
|
||||||
go get github.com/golang/dep/cmd/dep
|
|
||||||
COPY . /go/src/github.com/gohugoio/hugo/
|
COPY . /go/src/github.com/gohugoio/hugo/
|
||||||
RUN dep ensure -vendor-only && \
|
RUN go install -ldflags '-s -w'
|
||||||
go install -ldflags '-s -w'
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue