From b6e212566bf4a5f1de9ed759c84e4cb497c40e77 Mon Sep 17 00:00:00 2001 From: Alexandre ACEBEDO Date: Sat, 16 Jul 2016 13:53:52 +0200 Subject: [PATCH] Fixes Rockerbuild Go shall only download not build as sources are in the src folder --- Rockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rockerfile b/Rockerfile index 77b0906..869d85c 100644 --- a/Rockerfile +++ b/Rockerfile @@ -41,12 +41,12 @@ ENV CGO_ENABLED=0 RUN go get -v github.com/tools/godep - +RUN mkdir -p /go/src/github.com/tonistiigi/dnsdock +WORKDIR /go/src/github.com/tonistiigi/dnsdock {{if .SRCDIR}} MOUNT {{$SRCDIR}}:/go/src/github.com/tonistiigi/dnsdock {{else}} - RUN go get github.com/tonistiigi/dnsdock - WORKDIR /go/src/github.com/tonistiigi/dnsdock + RUN git clone https://github.com/tonistiigi/dnsdock /go/src/github.com/tonistiigi/dnsdock RUN git checkout {{$GIT_COMMIT}} {{end}}