postfix/Dockerfile

21 lines
510 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.3
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 && \
2024-07-30 22:37:54 +02:00
apk add --no-cache curl 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"]
2024-07-30 22:31:18 +02:00
# health check
2024-07-30 22:38:04 +02:00
HEALTHCHECK --interval=30s \
2024-07-30 22:31:18 +02:00
CMD curl -s smtp://localhost:25 -v >/dev/null 2>&1