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.
|
|
|
|
|
|
2026-03-11 18:02:44 +00:00
|
|
|
FROM debian:trixie-slim AS build
|
2025-04-24 21:03:50 +00:00
|
|
|
|
|
|
|
|
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-11 18:02:44 +00:00
|
|
|
FROM debian:trixie-slim
|
2026-03-11 16:47:25 +00:00
|
|
|
LABEL maintainer="Trent Maetzold <trent@trkm.io>"
|
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/trent-maetzold/protonmail-bridge-docker"
|
2020-04-15 00:59:21 +00:00
|
|
|
|
|
|
|
|
EXPOSE 25/tcp
|
|
|
|
|
EXPOSE 143/tcp
|
|
|
|
|
|
2020-06-01 04:16:31 +00:00
|
|
|
WORKDIR /protonmail
|
|
|
|
|
|
2020-04-15 07:17:01 +00:00
|
|
|
# Copy bash scripts
|
2025-04-24 21:03:50 +00:00
|
|
|
COPY gpgparams entrypoint.sh PACKAGE /protonmail/
|
|
|
|
|
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 \
|
2025-04-24 21:03:50 +00:00
|
|
|
&& apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates procps \
|
2025-02-17 09:15:22 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2025-04-24 21:03:50 +00:00
|
|
|
CMD ["bash", "/protonmail/entrypoint.sh"]
|