Add protonmail-bridge-docker
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM golang AS build
|
||||
|
||||
RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev
|
||||
|
||||
WORKDIR /build/
|
||||
|
||||
RUN git clone --depth 1 --branch v3.9.1 https://github.com/ProtonMail/proton-bridge.git
|
||||
WORKDIR /build/proton-bridge
|
||||
RUN sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
|
||||
|
||||
RUN make build-nogui
|
||||
|
||||
FROM ubuntu:jammy
|
||||
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 143/tcp
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY gpgparams entrypoint.sh /protonmail/
|
||||
|
||||
COPY --from=build /build/proton-bridge/bridge /protonmail/
|
||||
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
|
||||
|
||||
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]
|
Reference in New Issue
Block a user