Add libfido2 dependency for Bridge v3.22.0
Some checks failed
build from source / test (push) Failing after 4m34s
build from source / build (linux/amd64) (push) Has been skipped
build from source / build (linux/arm/v7) (push) Has been skipped
build from source / build (linux/arm64/v8) (push) Has been skipped
build from source / build (linux/riscv64) (push) Has been skipped
build from source / merge (push) Has been skipped
pack from deb / deb (push) Failing after 4m13s
build from source / test (pull_request) Failing after 13s
build from source / build (linux/amd64) (pull_request) Has been skipped
build from source / build (linux/arm/v7) (pull_request) Has been skipped
build from source / build (linux/arm64/v8) (pull_request) Has been skipped
build from source / build (linux/riscv64) (pull_request) Has been skipped
build from source / merge (pull_request) Has been skipped
pack from deb / deb (pull_request) Has been cancelled

Bridge v3.22.0 added FIDO2/WebAuthn support which requires libfido2
at runtime. Adds libfido2-dev and libcbor-dev to build stage, and
libfido2-1 to runtime stage for both build and deb Dockerfiles.

Ref: shenxn/protonmail-bridge-docker#139
This commit is contained in:
2026-03-10 20:51:59 -07:00
parent 97014ae98c
commit 1055912e84
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ FROM debian:sid-slim AS build
ARG version ARG version
# Install dependencies # 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 libcbor-dev
# Build # Build
ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/ ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/
@@ -19,7 +19,7 @@ EXPOSE 143/tcp
# Install dependencies and protonmail bridge # Install dependencies and protonmail bridge
RUN apt-get update \ 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 libfido2-1 ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy bash scripts # Copy bash scripts

View File

@@ -22,7 +22,7 @@ COPY gpgparams entrypoint.sh PACKAGE /protonmail/
COPY --from=build /protonmail.deb /tmp/protonmail.deb COPY --from=build /protonmail.deb /tmp/protonmail.deb
RUN apt-get update \ 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 libfido2-1 ca-certificates procps \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
CMD ["bash", "/protonmail/entrypoint.sh"] CMD ["bash", "/protonmail/entrypoint.sh"]