From 17dce093f47d7187978fd9192359fb9e59b607ee Mon Sep 17 00:00:00 2001 From: Michael Gibson Date: Thu, 9 Jul 2020 09:11:34 -0500 Subject: [PATCH] Consolidated run commands. --- Dockerfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index fea7006..17eaea5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,18 +18,22 @@ RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \ # Create a container for the ProtonMail Bridge. FROM alpine:edge ENV LANG C.UTF-8 + +EXPOSE 25/tcp +EXPOSE 143/tcp + COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge +COPY entrypoint /bin/ +COPY initproton /bin/ RUN apk add --no-cache \ libsecret \ pass \ socat \ - su-exec -COPY entrypoint /bin/ -RUN chmod +x /bin/entrypoint -COPY initproton /bin/ -RUN chmod +x /bin/initproton + su-exec \ + && chmod +x /bin/entrypoint \ + && chmod +x /bin/initproton + WORKDIR /var/lib/proton -EXPOSE 25/tcp -EXPOSE 143/tcp + ENTRYPOINT ["/bin/entrypoint"] CMD ["/bin/initproton"]