From 59976398044d1d53c980bc15c82bc024cf17a55a Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Tue, 1 Sep 2026 13:49:11 -0400 Subject: [PATCH] fix(container): install the protobuf well-known types in the build stage The canary image build is the only place that installs protoc with --no-install-recommends, so it was the only place that never got the include tree walgit-proto compiles against. Signed-off-by: Yordis Prieto --- Containerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 9ead156..09d8ada 100644 --- a/Containerfile +++ b/Containerfile @@ -24,7 +24,10 @@ RUN pnpm run build && test -f dist/index.html && test -f dist/repos.js # ---- 2. rust build ------------------------------------------------------------------------ FROM docker.io/library/rust:1.97-bookworm AS build -RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler pkg-config cmake perl python3 \ +# libprotobuf-dev, not just protobuf-compiler: Debian ships protoc in one package and the +# well-known types it resolves `import "google/protobuf/timestamp.proto"` against in the other, +# and --no-install-recommends means the second one has to be asked for by name. +RUN apt-get update && apt-get install -y --no-install-recommends protobuf-compiler libprotobuf-dev pkg-config cmake perl python3 \ && rm -rf /var/lib/apt/lists/* WORKDIR /src COPY Cargo.toml Cargo.lock rust-toolchain.toml ./