postfix/Dockerfile
Renovate Bot 08c2125f78
All checks were successful
lint, build and push / lint (push) Successful in 5s
lint, build and push / build (push) Successful in 22s
chore(deps): update alpine docker tag to v3.21.0 (#42)
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2024-12-06 01:09:23 +01:00

20 lines
510 B
Docker

#Dockerfile for a Postfix email relay service
FROM alpine:3.21.0
COPY run.sh /
# hadolint ignore=DL3018
RUN apk update --no-cache && \
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/ && \
chmod +x /run.sh && \
newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]
# health check
HEALTHCHECK --interval=30s \
CMD curl -s smtp://localhost:25 -v >/dev/null 2>&1