#Dockerfile for a Postfix email relay service FROM alpine:3 MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com 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 && \ 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 # Gpg for pass/pmb RUN mkdir /root/.gnupg #RUN echo "default-cache-ttl 34560000" >> /root/.gnupg/gpg-agent.conf #RUN echo "max-cache-ttl 34560000" >> /root/.gnupg/gpg-agent.conf RUN gpg-agent --daemon --batch --disable-scdaemon RUN gpg --quick-gen-key --batch --passphrase '' pmbkey RUN pass init pmbkey 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 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"]