Consolidated run commands.
This commit is contained in:
parent
3fa10c39a4
commit
17dce093f4
1 changed files with 11 additions and 7 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -18,18 +18,22 @@ RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \
|
||||||
# Create a container for the ProtonMail Bridge.
|
# Create a container for the ProtonMail Bridge.
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
|
EXPOSE 25/tcp
|
||||||
|
EXPOSE 143/tcp
|
||||||
|
|
||||||
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
|
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
|
||||||
|
COPY entrypoint /bin/
|
||||||
|
COPY initproton /bin/
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
libsecret \
|
libsecret \
|
||||||
pass \
|
pass \
|
||||||
socat \
|
socat \
|
||||||
su-exec
|
su-exec \
|
||||||
COPY entrypoint /bin/
|
&& chmod +x /bin/entrypoint \
|
||||||
RUN chmod +x /bin/entrypoint
|
&& chmod +x /bin/initproton
|
||||||
COPY initproton /bin/
|
|
||||||
RUN chmod +x /bin/initproton
|
|
||||||
WORKDIR /var/lib/proton
|
WORKDIR /var/lib/proton
|
||||||
EXPOSE 25/tcp
|
|
||||||
EXPOSE 143/tcp
|
|
||||||
ENTRYPOINT ["/bin/entrypoint"]
|
ENTRYPOINT ["/bin/entrypoint"]
|
||||||
CMD ["/bin/initproton"]
|
CMD ["/bin/initproton"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue