postfix/Dockerfile

17 lines
407 B
Text
Raw Normal View History

2015-04-20 07:07:23 +02:00
#Dockerfile for a Postfix email relay service
FROM alpine:3.20.2
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-11-03 11:30:43 +01:00
apk add --no-cache bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx postfix-pcre \
postfix && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
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"]