postfix/Dockerfile

19 lines
515 B
Text
Raw Normal View History

2015-04-20 07:07:23 +02:00
#Dockerfile for a Postfix email relay service
2023-10-30 23:58:51 +01:00
# hadolint ignore=DL3007
2023-10-30 23:53:35 +01:00
FROM alpine:latest
2023-10-30 23:59:52 +01:00
COPY run.sh /
# hadolint ignore=DL3018
2023-10-30 23:58:51 +01:00
RUN apk update --no-cache && \
2023-10-30 23:59:52 +01:00
apk add --no-cache bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
2023-10-31 00:00:27 +01:00
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf && \
2023-10-30 23:59:52 +01:00
chmod +x /run.sh && \
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"]