2023-03-23 04:13:58 +03:00
|
|
|
FROM ubuntu:jammy
|
2020-04-14 17:59:21 -07:00
|
|
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
|
|
|
|
|
|
|
|
|
EXPOSE 25/tcp
|
|
|
|
|
EXPOSE 143/tcp
|
|
|
|
|
|
2024-09-09 17:45:17 -04:00
|
|
|
|
|
|
|
|
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
|
|
|
|
|
--mount=target=/var/cache/apt,type=cache,sharing=locked \
|
|
|
|
|
rm -f /etc/apt/apt.conf.d/docker-clean \
|
|
|
|
|
&& apt-get update \
|
|
|
|
|
&& apt-get -y --no-install-recommends install \
|
|
|
|
|
libc6
|
|
|
|
|
|
2020-05-31 21:16:31 -07:00
|
|
|
WORKDIR /protonmail
|
|
|
|
|
|
2020-04-15 00:17:01 -07:00
|
|
|
# Copy bash scripts
|
2020-05-31 21:16:31 -07:00
|
|
|
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
|
2020-04-14 17:59:21 -07:00
|
|
|
|
|
|
|
|
# Install dependencies and protonmail bridge
|
2020-05-31 21:16:31 -07:00
|
|
|
RUN bash install.sh
|
2020-04-14 17:59:21 -07:00
|
|
|
|
2020-04-14 22:31:20 -07:00
|
|
|
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|