| 12345678910111213141516171819202122232425 | FROM alpine:3.8RUN 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 tiniENTRYPOINT ["/sbin/tini", "-s", "--"]RUN apk add postfixCOPY smtp-tls-trusted-ca.pem /etc/postfix/smtp-tls-trusted-ca.pemCOPY smtp-tls-policy-map /etc/postfix/smtp-tls-policy-mapRUN postmap /etc/postfix/smtp-tls-policy-mapEXPOSE 25COPY main.cf /etc/postfix/main.cfRUN postfix checkENV POSTFIX_RELAYHOST ""ENV POSTFIX_RELAY_DOMAINS ""# TODO run as unprivileged user?CMD postconf -ev relayhost="$POSTFIX_RELAYHOST" \ && postconf -ev relay_domains="$POSTFIX_RELAY_DOMAINS" \ && postconf -ev syslog_name="$HOSTNAME/pstfx" \ && postfix start-fg
 |