postfix-docker/Dockerfile
MrMeeb 6f23ed5a8d
All checks were successful
continuous-integration/drone/push Build is passing
Move to Alpine 3.17, move to Postfix 3.7.4
2023-03-23 18:54:14 +00:00

21 lines
620 B
Docker

FROM alpine:3.17
RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix postfix-pgsql && \
rm -rf /var/cache/apk/* && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
touch /etc/postfix/pgsql-relay-domains.cf && \
touch /etc/postfix/pgsql-transport-maps.cf && \
echo 'maillog_file = /dev/stdout' >> /etc/postfix/main.cf && \
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
RUN mkdir /config
COPY run.sh /
RUN chmod +x /run.sh
RUN newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]