postfix/Dockerfile
Juan Luis Baptiste 1976cf8400 Fix issue #45: Update alpine image to v3.13, had to remove cyrus-sasl-plain
package as is not present on that version and switch sasl map from
hash to lmdb.
2021-02-03 15:26:44 -05:00

20 lines
558 B
Docker

#Dockerfile for a Postfix email relay service
FROM alpine:3.13
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
perl supervisor postfix rsyslog && \
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
COPY etc/ /etc/
COPY run.sh /
RUN chmod +x /run.sh
RUN newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]