diff --git a/Dockerfile b/Dockerfile
index 24d77846df814b357bb916b5844970aa1977ad7a..bbae7429802d436b92a98f478b827aaf44a3628c 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 docker.io/library/golang:1.19 AS gobuild
+FROM docker.io/library/golang:1.21 AS gobuild
 RUN go install github.com/piranha/gostatic@latest
 RUN go install git.autistici.org/ai/webtools/cmd/jsonsubst@latest
 RUN go install git.autistici.org/ai/webtools/cmd/sitesearch@latest