protonmail-bridge-nextcoud-.../build/Dockerfile

30 lines
777 B
Docker
Raw Normal View History

2025-01-04 00:47:52 +00:00
FROM golang:1.23 AS build
2020-06-01 13:51:24 +00:00
2025-01-04 00:47:52 +00:00
# Install build dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends git build-essential libsecret-1-dev
2020-06-01 13:51:24 +00:00
# Build
WORKDIR /build/
COPY build.sh VERSION /build/
RUN bash build.sh
2025-01-04 00:47:52 +00:00
FROM debian:bookworm
LABEL maintainer="Ryan Deushane <radeushane@gmail.com>"
2020-06-01 13:51:24 +00:00
2025-01-04 00:47:52 +00:00
EXPOSE 25/tcp 143/tcp
2020-06-01 13:51:24 +00:00
2025-01-04 00:47:52 +00:00
# Install dependencies
2020-06-01 13:51:24 +00:00
RUN apt-get update \
2025-01-04 00:47:52 +00:00
&& apt-get install -y --no-install-recommends socat pass procps libsecret-1-0 ca-certificates \
2020-06-01 13:51:24 +00:00
&& rm -rf /var/lib/apt/lists/*
# Copy bash scripts
COPY gpgparams entrypoint.sh /protonmail/
2025-01-04 00:47:52 +00:00
# Install protonmail
COPY --from=build /build/proton-bridge/bridge /protonmail/
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
2020-06-01 13:51:24 +00:00
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]