Repository: lightningnetwork/lnd (language: go)

Issue:
Update golang version in lnrpc Dockerfile
I think from the security and code quality standpoint the following line: 
golang:1.19.2-buster 

should be updated to: 
golang:1.20.3-bullseye 

in 
https://github.com/lightningnetwork/lnd/blob/588a7eb9caf4c24c18088c3b7ae57617770c5614/lnrpc/Dockerfile#L1 

But I haven't tested it yet. It would be nice if you could take a look at that. 


Discussion / hints:
The `[lnd/lnrpc/Dockerfile](https://github.com/lightningnetwork/lnd/blob/588a7eb9caf4c24c18088c3b7ae57617770c5614/lnrpc/Dockerfile#L1)` file is only used to build the gRPC stubs. The end result should be completely independent from the Golang version used. But I agree it would be nice to keep it up to date with all our other `Dockerfile`s.

Fix patch:
diff --git a/docker/btcd/Dockerfile b/docker/btcd/Dockerfile
index 20708eb904..ca5e7fffa2 100644
--- a/docker/btcd/Dockerfile
+++ b/docker/btcd/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.19.2-alpine as builder
+FROM golang:1.20.4-alpine as builder
 
 LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"
 
diff --git a/docker/ltcd/Dockerfile b/docker/ltcd/Dockerfile
index ed0e9d1e8a..105a428508 100644
--- a/docker/ltcd/Dockerfile
+++ b/docker/ltcd/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.19.2-alpine as builder
+FROM golang:1.20.4-alpine as builder
 
 LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"
 
diff --git a/lnrpc/Dockerfile b/lnrpc/Dockerfile
index 5f6dde8f8b..c665251009 100644
--- a/lnrpc/Dockerfile
+++ b/lnrpc/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.19.2-buster
+FROM golang:1.20.4-buster
 
 RUN apt-get update && apt-get install -y \
   git \
diff --git a/lnrpc/gen_protos_docker.sh b/lnrpc/gen_protos_docker.sh
index f867158f3a..1d6fc5bf36 100755
--- a/lnrpc/gen_protos_docker.sh
+++ b/lnrpc/gen_protos_docker.sh
@@ -6,7 +6,7 @@ set -e
 DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
 
 # golang docker image version used in this script.
-GO_IMAGE=golang:1.19.7-alpine
+GO_IMAGE=golang:1.20.4-alpine
 
 PROTOBUF_VERSION=$(docker run --rm -v $DIR/../:/lnd -w /lnd $GO_IMAGE \
   go list -f '{{.Version}}' -m google.golang.org/protobuf)


Test patch: