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}}