Fix riscv64 runtime: use sid-slim on riscv64, bookworm-slim elsewhere

debian:bookworm-slim has no riscv64 image. Parameterize the runtime
base via RUNTIME_IMAGE build-arg; the workflow passes sid-slim for
riscv64 and bookworm-slim for all other platforms.
This commit is contained in:
Dan Williams 2026-02-24 21:16:50 -06:00
parent fcebd8a198
commit e769e2bbb0
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,7 @@
# debian:sid-slim is required for the build stage to support riscv64 (golang:bookworm does not).
# For the runtime stage we use debian:bookworm-slim for stable, predictable package names.
# For the runtime stage we default to debian:bookworm-slim for stable, predictable package names.
# riscv64 requires debian:sid-slim at runtime too (bookworm has no riscv64 image);
# the workflow passes RUNTIME_IMAGE=debian:sid-slim for that platform.
FROM debian:sid-slim AS build
ARG version
@ -12,7 +14,8 @@ ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/
WORKDIR /build/
RUN make build-nogui vault-editor
FROM debian:bookworm-slim
ARG RUNTIME_IMAGE=debian:bookworm-slim
FROM ${RUNTIME_IMAGE}
LABEL maintainer="Dan Williams <dancwilliams@github>"
EXPOSE 25/tcp