postfix/Dockerfile

21 lines
414 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 \
2024-08-10 23:23:08 +00:00
postfix-ldap \
2023-03-19 21:14:22 +00:00
swaks \
prometheus-postfix-exporter \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /start.sh
EXPOSE 25
EXPOSE 587
CMD ["sh", "/start.sh"]