FROM ubuntu:jammy RUN apt-get -q update \ && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ amavisd-new \ clamav-daemon \ clamav-freshclam \ cron \ dovecot-core \ dovecot-managesieved \ dovecot-sieve \ dovecot-imapd \ dovecot-pop3d \ dovecot-ldap \ ldap-auth-client \ ldap-auth-config \ libnss-ldap \ libpam-ldap \ inotify-tools \ milter-greylist \ opendkim \ openssh-server \ postfix \ spamassassin \ python3 \ python-is-python3 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} COPY ./Dockerfile.mail /Dockerfile COPY ./entrypoint.sh /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ]