postfix/Dockerfile

21 lines
611 B
Text
Raw Normal View History

2015-04-20 07:07:23 +02:00
#Dockerfile for a Postfix email relay service
FROM centos:7
2015-04-20 07:07:23 +02:00
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
RUN yum install -y epel-release && yum update -y && \
yum install -y cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 mailx \
2018-05-24 05:32:10 +02:00
perl supervisor postfix rsyslog \
&& rm -rf /var/cache/yum/* \
&& yum clean all
2015-04-20 07:07:23 +02:00
RUN sed -i -e "s/^nodaemon=false/nodaemon=true/" /etc/supervisord.conf
RUN sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
2019-11-29 11:44:46 +01:00
COPY etc/ /etc/
2015-04-20 07:07:23 +02:00
COPY run.sh /
RUN chmod +x /run.sh
2015-05-12 09:20:38 +02:00
RUN newaliases
2015-04-20 07:07:23 +02:00
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
2019-11-29 11:44:46 +01:00
CMD ["/run.sh"]