mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -1,11 +1,10 @@
|
||||
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 go get github.com/golang/dep/cmd/dep
|
||||
|
||||
ADD vendor/vendor.json /go/src/github.com/gohugoio/hugo/vendor/vendor.json
|
||||
WORKDIR /go/src/github.com/gohugoio/hugo
|
||||
RUN govendor sync
|
||||
RUN dep ensure
|
||||
ADD . /go/src/github.com/gohugoio/hugo/
|
||||
RUN go install -ldflags '-s -w'
|
||||
|
||||
|
Reference in New Issue
Block a user