2023-03-23 01:13:58 +00:00
|
|
|
FROM ubuntu:jammy
|
2020-04-15 00:59:21 +00:00
|
|
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
|
|
|
|
|
|
|
|
|
EXPOSE 25/tcp
|
|
|
|
|
EXPOSE 143/tcp
|
|
|
|
|
|
2024-09-09 21:45:17 +00: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-06-01 04:16:31 +00:00
|
|
|
WORKDIR /protonmail
|
|
|
|
|
|
2020-04-15 07:17:01 +00:00
|
|
|
# Copy bash scripts
|
2020-06-01 04:16:31 +00:00
|
|
|
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
|
2020-04-15 00:59:21 +00:00
|
|
|
|
|
|
|
|
# Install dependencies and protonmail bridge
|
2020-06-01 04:16:31 +00:00
|
|
|
RUN bash install.sh
|
2020-04-15 00:59:21 +00:00
|
|
|
|
2020-04-15 05:31:20 +00:00
|
|
|
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|