2015-04-20 07:07:23 +02:00
|
|
|
#Dockerfile for a Postfix email relay service
|
2022-07-08 00:23:32 +02:00
|
|
|
FROM alpine:3.15
|
2015-04-20 07:07:23 +02:00
|
|
|
MAINTAINER Juan Luis Baptiste juan.baptiste@gmail.com
|
|
|
|
|
2020-03-23 05:17:24 +01:00
|
|
|
RUN apk update && \
|
2021-02-03 21:26:32 +01:00
|
|
|
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
|
2021-04-27 23:44:39 +02:00
|
|
|
postfix && \
|
2020-03-23 05:17:24 +01: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 07:02:59 +02:00
|
|
|
|
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"]
|