feat: add healthcheck to Dockerfile for proton-bridge process monitoring

This commit is contained in:
thiswillbeyourgithub (aider) 2025-06-17 13:01:26 +02:00 committed by thiswillbeyourgithub
parent e788a0098e
commit 82d3ffccf7

View File

@ -17,6 +17,10 @@ LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
EXPOSE 25/tcp EXPOSE 25/tcp
EXPOSE 143/tcp EXPOSE 143/tcp
# Add healthcheck to monitor proton-bridge process
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=60s \
CMD bash -c "pgrep -f proton-bridge || exit 1"
# 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 ca-certificates \