mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
29 lines
846 B
Docker
29 lines
846 B
Docker
### 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 RELEASE install.sh /
|
|
RUN apt-get update && apt-get install -y wget binutils
|
|
|
|
# Repack deb (removes unnecessary dependencies and produces /protonmail.deb)
|
|
RUN bash /install.sh
|
|
|
|
FROM debian:sid-slim
|
|
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
|
|
|
EXPOSE 25/tcp
|
|
EXPOSE 143/tcp
|
|
|
|
WORKDIR /protonmail
|
|
|
|
# Copy bash scripts
|
|
COPY gpgparams entrypoint.sh RELEASE /protonmail/
|
|
COPY --from=build /protonmail.deb /tmp/protonmail.deb
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
CMD ["bash", "/protonmail/entrypoint.sh"]
|