git » chasquid » commit 45071cb

docker: Use a specific Debian version

author Alberto Bertogli
2026-02-01 10:48:52 UTC
committer Alberto Bertogli
2026-02-01 10:51:10 UTC
parent d9f53411b53abd4c88b0b757b3642da7908b414c

docker: Use a specific Debian version

When Debian releases a new stable version, there could be breaking
changes that mean Docker build stops working.

New Debian stable versions are infrequent enough that it is better to
just do them by hand, to avoid accidentally breaking builds (and
subsequently having to fix them in a rush).

Thanks to Ernesto Alfonso (erjoalgo@github) for reporting this problem
in https://github.com/albertito/chasquid/issues/80.

docker/Dockerfile +4 -1

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 73af700..98dd135 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -15,7 +15,10 @@ RUN go get -d ./... && \
 	go install ./...
 
 # Create the image.
-FROM debian:stable-slim
+# Use a specific Debian stable version, because the move between
+# different stable version may introduce some breaking changes, so we want to
+# do them in a controlled way.
+FROM debian:13-slim
 
 # Create the chasquid and dovecot users with fixed UID/GID.
 # Install the packages we need.