Skip to content

The agent that grows with you

build(docker): pin the debian:13.4 base by digest

ethernet29f8012beb9f
diff --git a/Dockerfile b/Dockerfile
index 221c093e1a4..7d5b9f22a6e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,9 @@
# corruption bug. Build a pinned shared library for the runtime image instead
# of relying on a distro backport that trixie does not currently provide.
# See #70480 and https://sqlite.org/wal.html#walresetbug.
-FROM debian:13.4 AS sqlite_build
+# Pinned by the multi-arch index digest: uv and node already come from pm's
+# sha-verified lock, and a tag alone would let the base drift under them.
+FROM debian:13.4@sha256:e2d08da6f42ef4b09b165d55528a12727aeed8240dc9edf888e3ec07e10ef9da AS sqlite_build
ARG SQLITE_AUTOCONF_VERSION=3530400
ARG SQLITE_SHA256=0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c
RUN apt-get -o Acquire::Retries=3 update && \
@@ -40,7 +42,8 @@ RUN apt-get -o Acquire::Retries=3 update && \
make -j"$(nproc)" && \
make install
-FROM debian:13.4 AS runtime_base
+# Same digest as sqlite_build: the built libsqlite must match this libc.
+FROM debian:13.4@sha256:e2d08da6f42ef4b09b165d55528a12727aeed8240dc9edf888e3ec07e10ef9da AS runtime_base
# Disable Python stdout buffering to ensure logs are printed immediately.
# Do not write .pyc files at runtime: /opt/hermes is immutable in the