Looks like build fails on the go
golang.org/x/textBecause of GnuTLS error.
go get golang.org/x/text work fine outside any container? (that is, when invoked from a plain shell, with the go.mod file inside a directory)
If so, the problem appears to be specific to the Docker context (but without more context, it’s not possible to tell the reason).