Skip to content

Commit b6e2125

Browse files
committed
Fixes Rockerbuild
Go shall only download not build as sources are in the src folder
1 parent 5fd1b50 commit b6e2125

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ ENV CGO_ENABLED=0
4141

4242
RUN go get -v github.com/tools/godep
4343

44-
44+
RUN mkdir -p /go/src/github.com/tonistiigi/dnsdock
45+
WORKDIR /go/src/github.com/tonistiigi/dnsdock
4546
{{if .SRCDIR}}
4647
MOUNT {{$SRCDIR}}:/go/src/github.com/tonistiigi/dnsdock
4748
{{else}}
48-
RUN go get github.com/tonistiigi/dnsdock
49-
WORKDIR /go/src/github.com/tonistiigi/dnsdock
49+
RUN git clone https://github.com/tonistiigi/dnsdock /go/src/github.com/tonistiigi/dnsdock
5050
RUN git checkout {{$GIT_COMMIT}}
5151
{{end}}
5252

0 commit comments

Comments
 (0)