aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2019-08-19 00:02:08 -0700
committerGravatar Miek Gieben <miek@miek.nl> 2019-08-19 07:02:08 +0000
commit6fa61119bd4e62808b7c3ad6a417ca4a9ea5fb83 (patch)
tree434c65934cdbec96b8b746a62558ce249e6c95f0 /README.md
parent6402cef3371b6a5716dd032e2484d865cf25338a (diff)
downloadcoredns-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.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.md b/README.md
index b587b2e02..1a38c402c 100644
--- a/README.md
+++ b/README.md
@@ -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.