protonmail-bridge-nextcoud-.../deb/Dockerfile

29 lines
853 B
Docker
Raw Permalink Normal View History

### 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
FROM debian:sid-slim
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
COPY gpgparams entrypoint.sh PACKAGE /protonmail/
COPY --from=build /protonmail.deb /tmp/protonmail.deb
2020-04-15 00:59:21 +00:00
RUN apt-get update \
&& apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates procps \
&& rm -rf /var/lib/apt/lists/*
CMD ["bash", "/protonmail/entrypoint.sh"]