Commit 6fa61119 authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

Update build command inside docker (#3145)

Since we use golang 1.12 and gomod, it is not necessary
to match the impor path to `/go/src/github.com/coredns/coredns`
in order to build coredns. For that reason the build command
inside docker could be simplified with:
```
$ docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 make
```
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 6402cef3
...@@ -69,8 +69,7 @@ CoreDNS requires Go to compile. However, if you already have docker installed an ...@@ -69,8 +69,7 @@ CoreDNS requires Go to compile. However, if you already have docker installed an
setup a Go environment, you could build CoreDNS easily: setup a Go environment, you could build CoreDNS easily:
``` ```
$ docker run --rm -i -t -v $PWD:/go/src/github.com/coredns/coredns \ $ docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 make
-w /go/src/github.com/coredns/coredns golang:1.12 make
``` ```
The above command alone will have `coredns` binary generated. The above command alone will have `coredns` binary generated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment