FROM debian:12-slim ENV DEBIAN_FRONTEND=noninteractive \ POSTFIX_OPTS="" COPY start.sh /start.sh RUN apt-get update \ && apt-get dist-upgrade -y \ && apt-get install -y --no-install-recommends \ postfix \ swaks \ prometheus-postfix-exporter \ && rm -rf /var/lib/apt/lists/* \ && chmod +x /start.sh EXPOSE 25 EXPOSE 587 CMD ["sh", "/start.sh"]