Update build instructions in README.md (#6393)

This PR updates build instructions in README.md to make sure it works with
new versions.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2023-11-13 05:55:16 -08:00
committed by GitHub
parent 535ce6000d
commit 538467ded6

View File

@@ -74,7 +74,9 @@ 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:/v -w /v golang:1.21 make
docker run --rm -i -t \
-v $PWD:/go/src/github.com/coredns/coredns -w /go/src/github.com/coredns/coredns \
golang:1.21 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
```
The above command alone will have `coredns` binary generated.