protonmail-bridge-docker/build/Containerfile

33 lines
884 B
Text
Raw Permalink Normal View History

2026-05-17 16:45:58 +01:00
FROM golang:1-trixie AS build
2020-06-01 06:51:24 -07:00
ARG version
2020-06-01 06:51:24 -07:00
# Install dependencies
2026-05-17 16:45:58 +01:00
RUN apt-get update && apt-get install -y golang build-essential libsecret-1-dev libfido2-dev libcbor-dev
2020-06-01 06:51:24 -07:00
# Build
ADD https://github.com/ProtonMail/proton-bridge.git#${version} /build/
2020-06-01 06:51:24 -07:00
WORKDIR /build/
RUN make build-nogui vault-editor
2020-06-01 06:51:24 -07:00
2026-05-17 16:45:58 +01:00
FROM golang:1-trixie
LABEL maintainer="SR2 Communications <contact@sr2.uk>"
2020-06-01 06:51:24 -07:00
EXPOSE 25/tcp
EXPOSE 143/tcp
# Install dependencies and protonmail bridge
RUN apt-get update \
2021-01-07 21:14:11 +08:00
&& apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates \
2020-06-01 06:51:24 -07:00
&& rm -rf /var/lib/apt/lists/*
# Copy bash scripts
COPY gpgparams entrypoint.sh /protonmail/
# Copy protonmail
COPY --from=build /build/bridge /protonmail/
COPY --from=build /build/proton-bridge /protonmail/
COPY --from=build /build/vault-editor /protonmail/
2020-06-01 06:51:24 -07:00
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]