postfix/Dockerfile
2024-08-07 12:09:02 +02:00

20 lines
391 B
Docker

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"]