mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
24 lines
576 B
Docker
24 lines
576 B
Docker
FROM ubuntu:jammy
|
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
|
|
|
EXPOSE 25/tcp
|
|
EXPOSE 143/tcp
|
|
|
|
|
|
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
|
|
|
|
WORKDIR /protonmail
|
|
|
|
# Copy bash scripts
|
|
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
|
|
|
|
# Install dependencies and protonmail bridge
|
|
RUN bash install.sh
|
|
|
|
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|