add msmtp for debug
Some checks are pending
Test / build (push) Waiting to run

This commit is contained in:
2024-07-07 10:46:37 -07:00
parent c65f98a437
commit a22a313474
4 changed files with 44 additions and 20 deletions

View File

@ -6,6 +6,7 @@ RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix && \
apk add make go pkgconfig libsecret libsecret-dev git gpg gpg-agent pass && \
apk add msmtp && \
rm -rf /var/cache/apk/* && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
@ -18,21 +19,18 @@ RUN gpg-agent --daemon --batch --disable-scdaemon
RUN gpg --quick-gen-key --batch --passphrase '' pmbkey
RUN pass init pmbkey
COPY dotmsmtprc /root/.msmtprc
COPY run.sh /
COPY passpgp.sh /
RUN chmod +x /run.sh
RUN chmod +x /passpgp.sh
RUN newaliases
# ProtonMailBridge
RUN git clone https://github.com/ProtonMail/proton-bridge.git pb
WORKDIR pb
RUN git clone https://github.com/ProtonMail/proton-bridge.git pmb
WORKDIR pmb
RUN echo "BUILDING BRIDGE"
RUN make build-nogui
RUN rm -rf /root/.cache && rm -rf /root/go
WORKDIR /
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]