2025-02-17 17:03:25 +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.
|
|
|
|
|
|
2025-02-17 17:30:26 +00:00
|
|
|
FROM debian:sid-slim AS build
|
2025-02-17 17:03:25 +00:00
|
|
|
|
2025-02-17 17:30:26 +00:00
|
|
|
COPY install.sh RELEASE /
|
2025-02-17 17:03:25 +00:00
|
|
|
RUN apt-get update && apt-get install -y wget binutils
|
|
|
|
|
|
|
|
|
|
# Repack deb (removes unnecessary dependencies and produces /protonmail.deb)
|
|
|
|
|
RUN bash /install.sh
|
|
|
|
|
|
2025-02-15 16:07:15 +00:00
|
|
|
FROM debian:sid-slim
|
2025-02-17 17:03:25 +00:00
|
|
|
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
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-02-17 17:03:25 +00:00
|
|
|
COPY gpgparams entrypoint.sh RELEASE /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-02-17 17:03:25 +00:00
|
|
|
&& apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates \
|
2025-02-17 09:15:22 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2025-02-17 17:03:25 +00:00
|
|
|
CMD ["bash", "/protonmail/entrypoint.sh"]
|