2015-04-20 07:07:23 +02:00
|
|
|
#Dockerfile for a Postfix email relay service
|
2024-07-23 02:12:40 +02:00
|
|
|
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 && \
|
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 \
|
2021-04-27 23:44:39 +02:00
|
|
|
postfix && \
|
2020-03-23 05:17:24 +01:00
|
|
|
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
|