16 lines
947 B
Docker
16 lines
947 B
Docker
# Debian 13 test environment with systemd as PID 1 and the full package set.
|
|
FROM docker.io/library/debian:trixie
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN printf 'postfix postfix/main_mailer_type select Internet Site\npostfix postfix/mailname string example.org\n' | debconf-set-selections \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends systemd systemd-sysv dbus iproute2 procps \
|
|
netcat-openbsd openssl ca-certificates bind9-host swaks libnet-ssleay-perl libauthen-sasl-perl \
|
|
postfix postfix-pcre dovecot-core dovecot-imapd dovecot-pop3d dovecot-sieve \
|
|
opendkim opendkim-tools spamd spamc fail2ban dns-root-data python3-dkim shellcheck \
|
|
make ufw iptables nginx-light certbot python3-certbot-nginx \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
# Mailbox owner of the upstream-install fixture
|
|
RUN useradd -m -G mail -s /bin/bash alice && useradd -m -s /bin/sh postmaster
|
|
STOPSIGNAL SIGRTMIN+3
|
|
CMD ["/sbin/init"]
|