17 lines
466 B
Docker
17 lines
466 B
Docker
FROM debian:buster-slim
|
|
LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ENV LC_ALL C
|
|
RUN echo "_dev_null: /dev/null" > /etc/aliases \
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
postfix \
|
|
postfix-pcre \
|
|
postfix-ldap \
|
|
postfix-sqlite \
|
|
libsasl2-modules \
|
|
ssl-cert \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
|
|
VOLUME /etc/postfix
|
|
CMD postfix start-fg
|