agentic.email/smtp/Dockerfile
2026-10-03 21:14:44 +05:30

17 lines
436 B
Docker

FROM alpine:3.21
RUN apk add --no-cache postfix openssl
COPY main.cf /etc/postfix/main.cf
COPY master.cf /etc/postfix/master.cf
COPY entrypoint.sh /entrypoint.sh
RUN chmod 0644 /etc/postfix/main.cf /etc/postfix/master.cf && \
chmod 0755 /entrypoint.sh && \
mkdir -p /var/spool/postfix/pid
EXPOSE 25
HEALTHCHECK --interval=10s --timeout=3s --retries=5 \
CMD postfix status >/dev/null 2>&1 || exit 1
CMD ["/entrypoint.sh"]