You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfix/Dockerfile

19 lines
690 B
Docker

FROM registry.jochum.dev/jochum/debian-apt-cacher:buster-slim
LABEL maintainer "René Jochum <rene@jochum.dev>"
RUN echo "postfix postfix/mailname string mail.example.com" | debconf-set-selections && \
echo "postfix postfix/main_mailer_type string 'No configuration'" | debconf-set-selections && \
apt-get update --allow-releaseinfo-change && \
apt-get install -qy -o 'DPkg::Options::=--force-confold' -o 'DPkg::Options::=--force-confdef' postfix postfix-pgsql postfix-mysql postfix-pcre python3-minimal python3-jinja2
RUN rm -f /etc/apt/apt.conf.d/01proxy
COPY conf /conf
COPY start.py /start.py
EXPOSE 25/tcp 465/tcp 587/tcp
VOLUME ["/overrides", "/cert"]
CMD /start.py