> [stage-0 12/34] RUN go get -u github.com/valyala/quicktemplate github.com/rakyll/statik github.com/valyala/quicktemplate/qtc:
#0 0.317 go: go.mod file not found in current directory or any parent directory.
#0 0.317 'go get' is no longer supported outside a module.
#0 0.317 To build and install a command, use 'go install' with a version,
#0 0.317 like 'go install example.com/cmd@latest'
#0 0.317 For more information, see https://golang.org/doc/go-get-install-deprecation
#0 0.317 or run 'go help get' or 'go help install'.
I have zero experience in Go, so I don't know how to fix this issue, but I would suggest pin golang version to 1.16 like that:
# Install Go
RUN wget -O- \
"https://dl.google.com/go/go1.16.linux-amd64.tar.gz" \
| tar xpz -C /usr/local