postfix/Dockerfile
Thomas Renger af839bea87
Some checks failed
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/manual/docker Pipeline failed
Add postfix-ldap support package
2024-08-11 01:23:08 +02:00

21 lines
414 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 \
postfix-ldap \
swaks \
prometheus-postfix-exporter \
&& rm -rf /var/lib/apt/lists/* \
&& chmod +x /start.sh
EXPOSE 25
EXPOSE 587
CMD ["sh", "/start.sh"]