1234567891011121314151617181920212223 |
- FROM alpine:3.8
- RUN find / -xdev -type f -perm /u+s -exec chmod --changes u-s {} \; \
- && find / -xdev -type f -perm /g+s -exec chmod --changes g-s {} \;
- RUN apk add tini
- ENTRYPOINT ["/sbin/tini", "-s", "--"]
- RUN apk add postfix
- COPY smtp-tls-trusted-ca.pem /etc/postfix/smtp-tls-trusted-ca.pem
- COPY smtp-tls-policy-map /etc/postfix/smtp-tls-policy-map
- RUN postmap /etc/postfix/smtp-tls-policy-map
- EXPOSE 25
- COPY main.cf /etc/postfix/main.cf
- RUN postfix check
- ENV POSTFIX_RELAYHOST ""
- ENV POSTFIX_RELAY_DOMAINS ""
- COPY serve.sh /
- # TODO run as unprivileged user?
- CMD ["/serve.sh"]
|