2015-04-20 05:07:23 +00:00
|
|
|
#Dockerfile for a Postfix email relay service
|
2020-03-23 04:17:24 +00:00
|
|
|
FROM alpine
|
2015-04-20 05:07:23 +00:00
|
|
|
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
|
|
|
|
|
2020-03-23 04:17:24 +00:00
|
|
|
RUN apk update && \
|
2020-04-16 20:10:55 +00:00
|
|
|
apk add bash gawk cyrus-sasl cyrus-sasl-plain cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
|
|
|
perl supervisor postfix rsyslog && \
|
2020-03-23 04:17:24 +00:00
|
|
|
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
|
2018-05-09 05:02:59 +00:00
|
|
|
|
2019-11-29 10:44:46 +00:00
|
|
|
COPY etc/ /etc/
|
2015-04-20 05:07:23 +00:00
|
|
|
COPY run.sh /
|
|
|
|
RUN chmod +x /run.sh
|
2015-05-12 07:20:38 +00:00
|
|
|
RUN newaliases
|
2015-04-20 05:07:23 +00:00
|
|
|
|
|
|
|
EXPOSE 25
|
|
|
|
#ENTRYPOINT ["/run.sh"]
|
2019-11-29 10:44:46 +00:00
|
|
|
CMD ["/run.sh"]
|