summaryrefslogtreecommitdiff
path: root/mail/Dockerfile
blob: 8552253d3c59a2995f91493e47c65c915867b3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
    postfix \
    libsasl2-modules \
    opendkim \
    opendkim-tools \
    rsyslog \
    && rm -rf /var/lib/apt/lists/*

COPY postfix/main.cf /etc/postfix/main.cf
COPY opendkim/opendkim.conf /etc/opendkim.conf

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 25

ENTRYPOINT ["/entrypoint.sh"]