mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
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:
@@ -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:
|
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.
|
The above command alone will have `coredns` binary generated.
|
||||||
|
|||||||
Reference in New Issue
Block a user