aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorRyan Skoblenick <[email protected]>2018-01-31 01:33:03 -0500
committerBjørn Erik Pedersen <[email protected]>2018-01-31 09:16:28 +0100
commita34213f0b5624de101272aab469ca9b6fe0c273f (patch)
treea4594c8d63794604b05ce432504fb34d177af966 /Dockerfile
parentfe40823de0e0f4768e070a87da2834b8c1e430ec (diff)
downloadhugo-a34213f0b5624de101272aab469ca9b6fe0c273f.tar.gz
hugo-a34213f0b5624de101272aab469ca9b6fe0c273f.zip
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
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 889584b61..14834dcc2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,8 +4,8 @@ RUN apk add --no-cache --virtual git musl-dev
RUN go get github.com/golang/dep/cmd/dep
WORKDIR /go/src/github.com/gohugoio/hugo
-RUN dep ensure
ADD . /go/src/github.com/gohugoio/hugo/
+RUN dep ensure
RUN go install -ldflags '-s -w'
FROM alpine:3.6