diff options
author | 2019-08-19 00:02:08 -0700 | |
---|---|---|
committer | 2019-08-19 07:02:08 +0000 | |
commit | 6fa61119bd4e62808b7c3ad6a417ca4a9ea5fb83 (patch) | |
tree | 434c65934cdbec96b8b746a62558ce249e6c95f0 /README.md | |
parent | 6402cef3371b6a5716dd032e2484d865cf25338a (diff) | |
download | coredns-6fa61119bd4e62808b7c3ad6a417ca4a9ea5fb83.tar.gz coredns-6fa61119bd4e62808b7c3ad6a417ca4a9ea5fb83.tar.zst coredns-6fa61119bd4e62808b7c3ad6a417ca4a9ea5fb83.zip |
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: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: ``` -$ docker run --rm -i -t -v $PWD:/go/src/github.com/coredns/coredns \ - -w /go/src/github.com/coredns/coredns golang:1.12 make +$ docker run --rm -i -t -v $PWD:/v -w /v golang:1.12 make ``` The above command alone will have `coredns` binary generated. |