docker/dovecot/Dockerfile

24 lines
640 B
Docker
Raw Permalink Normal View History

FROM almalinux:9
2021-01-09 18:06:20 +00:00
2024-01-25 23:07:49 +00:00
ARG DOVECOT_VERSION
ARG POSTFIX_VERSION
2021-01-09 18:06:20 +00:00
RUN useradd -m -s /bin/false vmail
RUN dnf install -y epel-release dnf-plugins-core \
&& dnf update -y \
&& dnf config-manager --enable crb \
2021-01-09 18:06:20 +00:00
&& dnf clean all \
&& rm -rf /var/cache/yum
2024-01-25 23:07:49 +00:00
RUN dnf install -y postfix-${POSTFIX_VERSION} postfix-ldap-${POSTFIX_VERSION} \
postfix-mysql-${POSTFIX_VERSION} postfix-pgsql-${POSTFIX_VERSION} \
dovecot-${DOVECOT_VERSION} dovecot-pigeonhole-${DOVECOT_VERSION} \
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
2021-01-09 18:06:20 +00:00
&& dnf clean all \
&& rm -rf /var/cache/yum
EXPOSE 110 143 993 995
CMD ["/usr/sbin/dovecot", "-F"]