pmb-pf/Dockerfile
Michael Powers 6f0a49a8c8
Adds the cyrus-sasl-login package to provide feature parity with CentOS image and fix #21.
Fixes an unterminated line preventing cache cleaning from working correctly.
2020-04-16 16:13:35 -04:00

20 lines
570 B
Docker

#Dockerfile for a Postfix email relay service
FROM alpine
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-plain 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"]