Dockerfile uses Go 1.21.6 but go.mod requires Go >= 1.23.0
There is a mismatch between the Go version declared in `go.mod` and the one used in the Dockerfile.
- `go.mod` requires:
go 1.23
- But Dockerfile uses:
FROM golang:1.21.6
This results in the following error during Docker build:
go: go.mod requires go >= 1.23.0 (running go 1.21.6; GOTOOLCHAIN=local)
failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
1 条评论