mirror of
https://github.com/coredns/coredns.git
synced 2026-10-25 11:45:43 -04:00
README: use a golang:1.27 image in the Docker build example (#8698)
The README's Compilation with Docker section builds with golang:1.25, but go.mod requires Go 1.26.0 or higher, and .go-version (used by CI) pins 1.27.3. Use golang:1.27 so the example satisfies the declared minimum. Signed-off-by: yuwk <1729065730@qq.com>
This commit is contained in:
@@ -79,7 +79,7 @@ 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.25 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
|
||||
golang:1.27 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
|
||||
```
|
||||
|
||||
The above command alone will have `coredns` binary generated.
|
||||
|
||||
Reference in New Issue
Block a user