postfix/Dockerfile

20 lines
391 B
Docker
Raw Normal View History

2024-08-07 10:09:02 +00:00
FROM debian:12-slim
2023-03-19 21:14:22 +00:00
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"]