diff --git a/Dockerfile b/Dockerfile
index dc141b8335571c7f8fbaa10505464daa6fe95c94..2d8774d8d9ef5fab64e5a69b77804492d7a30a8f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,7 +5,7 @@ RUN npm install && env NODE_OPTIONS=--openssl-legacy-provider ./node_modules/.bi
 
 # Debian bullseye can't build gostatic due to its strict dependency
 # on Go 1.17, so we build it separately.
-FROM golang:1.17 AS gobuild
+FROM golang:1.20 AS gobuild
 RUN go get github.com/piranha/gostatic
 RUN go get git.autistici.org/ai/webtools/cmd/sitesearch
 RUN go get git.autistici.org/ai/webtools/cmd/jsonsubst