This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -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"]
|
||||
|
Reference in New Issue
Block a user