Commit graph

9 commits

Author SHA1 Message Date
c41ms0n
036e49faf0 healthcheck: parallel bash probe for smtp/imap on all 4 ports 2026-04-29 21:50:50 +02:00
c41ms0n
dad7066244 docker: BuildKit cache + CGO LTO optimization
Add persistent cache mounts for the Go module cache, Go build cache,
and apt so only changed packages are re-downloaded or recompiled on
subsequent builds.

CGO LTO is injected via `make LIBFIDO2_LDFLAGS=...` rather than ENV
because the Makefile sets CGO_LDFLAGS inline in go-build-finalize,
clobbering any inherited environment variable. Binary stripping is done
with strip --strip-all post-build since the Makefile owns the -ldflags
chain and cannot be extended without losing the -X version constants.
2026-04-29 21:50:50 +02:00
c41ms0n
ba65344ec1 fix(deb): add libfido2-1 runtime dependency
install.sh strips the official deb Depends line, removing libfido2-1.
The bridge binary still links against it, so it must be installed explicitly.
2026-04-29 21:50:50 +02:00
c41ms0n
8c6e7b301a chore(deb): sync entrypoint and Dockerfile from build/
- Replace legacy entrypoint with the current build/ version
  (PTY_TOOL support, init/manage/attach/run commands, SIGTERM trap,
  port-readiness liveness check, abduco session detection, <container>
  placeholder in error messages); only difference is binary name
  protonmail-bridge instead of /protonmail/proton-bridge
- Add ARG/ENV PTY_TOOL and conditional apt install of dtach/abduco/reptyr
- Add HEALTHCHECK on 127.0.0.1 for all four ports (25, 143, 1025, 1143)
- Switch from CMD bash ... to ENTRYPOINT + CMD ["run"]
2026-04-29 21:50:50 +02:00
simonfelding
4ccd39856a
improve build readability and speed (by parallelization) (#117) 2025-04-24 23:03:50 +02:00
simonfelding
2745c6eb57
deb build: make sure it has the necessary tools (#116) 2025-02-17 10:15:22 +01:00
simonfelding
a19458f703
fix builds by switching base layer to debian:sid-slim
tested locally, works fine.
debian has supported riscv64 in the sid image for some time.

this is the same thing the carlosedp/golang image did.

this also fixes the bug with the wrong glibc version, as the build
container now uses the same glibc version as the final container.
2025-02-15 17:07:15 +01:00
Aziz Hasanain
b1b6706030
Update Ubuntu tag for deb to fix GLIBC dependency (#80)
GLIBC dependency issue highlighted in
https://github.com/shenxn/protonmail-bridge-docker/issues/79 is caused
by v3 of the bridge not supporting bionic. This PR simply updates the
"deb" version to match the "build" version which is already on
ubuntu:jammy.
2023-03-23 09:13:58 +08:00
Xiaonan Shen
cc319ba0a7
Move deb packing under deb folder (#12) 2020-11-19 19:46:18 -08:00
Renamed from Dockerfile (Browse further)