FROM docker.io/alpine:3.18.0 ARG DOVECOT_PACKAGE_VERSION=2.3.20-r10 ARG SOCAT_PACKAGE_VERSION=1.7.4.4-r1 RUN apk add --no-cache \ dovecot-lmtpd=$DOVECOT_PACKAGE_VERSION \ dovecot-pigeonhole-plugin=$DOVECOT_PACKAGE_VERSION \ dovecot-pop3d=$DOVECOT_PACKAGE_VERSION \ dovecot=$DOVECOT_PACKAGE_VERSION \ socat=$SOCAT_PACKAGE_VERSION \ && find /etc/ssl/dovecot -type f -print -delete VOLUME /etc/ssl/dovecot CMD ["dovecot", "-F"]