mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fix Docker build
The present Dockerfile in master does not build a Hugo container. The build container prematurely exits because `dep ensure` can not locate `Gopkg.toml` due to the source files not being copied/added to the container prior to running this command. The minimal change require to resolve the issue is merely move the ADD source before the RUN dep. Fixes #4076 Resolves #4077
This commit is contained in:
parent
fe40823de0
commit
a34213f0b5
1 changed files with 1 additions and 1 deletions
|
@ -4,8 +4,8 @@ RUN apk add --no-cache --virtual git musl-dev
|
||||||
RUN go get github.com/golang/dep/cmd/dep
|
RUN go get github.com/golang/dep/cmd/dep
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/gohugoio/hugo
|
WORKDIR /go/src/github.com/gohugoio/hugo
|
||||||
RUN dep ensure
|
|
||||||
ADD . /go/src/github.com/gohugoio/hugo/
|
ADD . /go/src/github.com/gohugoio/hugo/
|
||||||
|
RUN dep ensure
|
||||||
RUN go install -ldflags '-s -w'
|
RUN go install -ldflags '-s -w'
|
||||||
|
|
||||||
FROM alpine:3.6
|
FROM alpine:3.6
|
||||||
|
|
Loading…
Reference in a new issue