2025-04-24 21:03:50 +00:00
|
|
|
### The Deb install is just a repack of the official ProtonMail Bridge deb package with less dependencies.
|
|
|
|
|
### I recommend you don't use this. It's here for legacy reasons.
|
|
|
|
|
|
|
|
|
|
FROM debian:sid-slim AS build
|
|
|
|
|
|
|
|
|
|
COPY install.sh PACKAGE /
|
|
|
|
|
RUN apt-get update && apt-get install -y wget binutils
|
|
|
|
|
|
|
|
|
|
# Repack deb (removes unnecessary dependencies and produces /protonmail.deb)
|
|
|
|
|
RUN bash /install.sh
|
|
|
|
|
|
2026-03-03 10:02:03 +00:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
2025-02-15 16:07:15 +00:00
|
|
|
FROM debian:sid-slim
|
2025-04-24 21:03:50 +00:00
|
|
|
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
2020-04-15 00:59:21 +00:00
|
|
|
|
2026-03-03 10:02:03 +00:00
|
|
|
# Select PTY tool for manage/attach commands: dtach (default), abduco, reptyr
|
|
|
|
|
ARG PTY_TOOL=dtach
|
|
|
|
|
ENV PTY_TOOL=${PTY_TOOL}
|
|
|
|
|
|
2020-04-15 00:59:21 +00:00
|
|
|
EXPOSE 25/tcp
|
|
|
|
|
EXPOSE 143/tcp
|
|
|
|
|
|
2020-06-01 04:16:31 +00:00
|
|
|
WORKDIR /protonmail
|
|
|
|
|
|
2026-03-03 10:02:03 +00:00
|
|
|
# PACKAGE is only needed in the build stage; don't copy it into the final image
|
|
|
|
|
COPY gpgparams entrypoint.sh /protonmail/
|
2025-04-24 21:03:50 +00:00
|
|
|
COPY --from=build /protonmail.deb /tmp/protonmail.deb
|
2020-04-15 00:59:21 +00:00
|
|
|
|
2025-02-17 09:15:22 +00:00
|
|
|
RUN apt-get update \
|
2026-03-03 10:02:03 +00:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
|
/tmp/protonmail.deb \
|
|
|
|
|
socat pass libsecret-1-0 libfido2-1 ca-certificates procps \
|
|
|
|
|
&& case "${PTY_TOOL}" in \
|
|
|
|
|
dtach) apt-get install -y --no-install-recommends dtach ;; \
|
|
|
|
|
abduco) apt-get install -y --no-install-recommends abduco ;; \
|
|
|
|
|
reptyr) apt-get install -y --no-install-recommends reptyr ;; \
|
|
|
|
|
esac \
|
|
|
|
|
&& chmod +x /protonmail/entrypoint.sh \
|
|
|
|
|
&& rm -rf /tmp/protonmail.deb /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 --start-period=120s \
|
|
|
|
|
CMD /bin/bash -c "true < /dev/tcp/localhost/25"
|
|
|
|
|
|
|
|
|
|
CMD ["/protonmail/entrypoint.sh", "run"]
|