From 15a89be952b5e104083b0b4e9562b26aeaa23503 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 17 Apr 2026 12:48:35 +0200 Subject: [PATCH 1/3] fix: add libfido2-1 and libsecret-1-0 to runtime deps Since Proton Bridge 3.22, libfido2-1 is a required runtime dependency that was missing from the Docker image, causing container crashes on startup with a missing library error. libsecret-1-0 and ca-certificates were already present; only libfido2-1 is added here. Refs #135, #141, #147 --- build/Dockerfile | 2 +- deb/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index e90ff25..b1e6b53 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -19,7 +19,7 @@ EXPOSE 143/tcp # Install dependencies and protonmail bridge RUN apt-get update \ - && apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates \ + && apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates libfido2-1 \ && rm -rf /var/lib/apt/lists/* # Copy bash scripts diff --git a/deb/Dockerfile b/deb/Dockerfile index a0d8e2c..c7251af 100644 --- a/deb/Dockerfile +++ b/deb/Dockerfile @@ -22,7 +22,7 @@ COPY gpgparams entrypoint.sh PACKAGE /protonmail/ COPY --from=build /protonmail.deb /tmp/protonmail.deb RUN apt-get update \ - && apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates procps \ + && apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates procps libfido2-1 \ && rm -rf /var/lib/apt/lists/* CMD ["bash", "/protonmail/entrypoint.sh"] From f5796988d752faf9374bec032047d2a7169d92b6 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 17 Apr 2026 13:28:16 +0200 Subject: [PATCH 2/3] fix: add libfido2-dev to build stage for CGo linking Proton Bridge 3.22+ links against libfido2 via CGo. The build stage needs libfido2-dev (headers + pkg-config) in addition to the runtime libfido2-1 already added. --- build/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index b1e6b53..9dcfd46 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -4,7 +4,7 @@ FROM debian:sid-slim AS build ARG version # Install dependencies -RUN apt-get update && apt-get install -y golang build-essential libsecret-1-dev +RUN apt-get update && apt-get install -y golang build-essential libsecret-1-dev libfido2-dev # Build ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/ From 0c40cd71c1d14d9c0f2bbe28b59d83a1e423edea Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 17 Apr 2026 13:42:49 +0200 Subject: [PATCH 3/3] fix: add libcbor-dev to build stage (transitive fido2 dep) libfido2 requires libcbor at link time via CGo; libcbor-dev was missing from the build stage, causing ld to fail. --- build/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index 9dcfd46..a5f7d3d 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -4,7 +4,7 @@ FROM debian:sid-slim AS build ARG version # Install dependencies -RUN apt-get update && apt-get install -y golang build-essential libsecret-1-dev libfido2-dev +RUN apt-get update && apt-get install -y golang build-essential libsecret-1-dev libfido2-dev libcbor-dev # Build ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/