Removed SMTP/IMAP port variables, exposed ports.
This commit is contained in:
parent
4c35ecad32
commit
c6bc75bb21
3 changed files with 4 additions and 6 deletions
|
|
@ -13,8 +13,6 @@ RUN make build-nogui
|
|||
|
||||
FROM alpine:edge
|
||||
ENV LANG C.UTF-8
|
||||
ENV SMTP_PORT 25
|
||||
ENV IMAP_PORT 143
|
||||
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
|
||||
RUN apk add --no-cache \
|
||||
libsecret \
|
||||
|
|
@ -27,5 +25,7 @@ COPY initproton /bin/
|
|||
RUN chmod +x /bin/initproton
|
||||
COPY gpgparams /tmp/
|
||||
WORKDIR /var/lib/proton
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 143/tcp
|
||||
ENTRYPOINT ["/bin/entrypoint"]
|
||||
CMD ["/bin/initproton"]
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export HOME=/var/lib/proton
|
|||
# The ProtonMail Bridge expects connections from 127.0.0.1. Use socat to
|
||||
# redirect incoming connections to localhost. Also, this allows us to use
|
||||
# the default SMTP/IMAP ports.
|
||||
socat TCP-LISTEN:$SMTP_PORT,fork TCP:127.0.0.1:1025 &
|
||||
socat TCP-LISTEN:$IMAP_PORT,fork TCP:127.0.0.1:1143 &
|
||||
socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 &
|
||||
socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 &
|
||||
|
||||
exec /sbin/su-exec proton "$@"
|
||||
|
|
@ -3,8 +3,6 @@ set -eufo pipefail
|
|||
|
||||
BRIDGE=/bin/protonmail-bridge
|
||||
PRINT_INFO=${PRINT_INFO:-""}
|
||||
SMTP_PORT=${SMTP_PORT:-"25"}
|
||||
IMAP_PORT=${IMAP_PORT:-"143"}
|
||||
|
||||
#### INIT
|
||||
PASS_FILE=${PASS_FILE:-}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue