Consolidated run commands.

This commit is contained in:
michael 2020-07-09 09:11:34 -05:00
parent 3fa10c39a4
commit 17dce093f4

View file

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