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"]