2023-08-01 15:42:57 +00:00
|
|
|
FROM almalinux:9
|
2021-01-09 18:06:20 +00:00
|
|
|
|
2024-01-25 23:07:41 +00:00
|
|
|
ARG DOVECOT_VERSION
|
|
|
|
ARG POSTFIX_VERSION
|
|
|
|
ARG RSPAMD_VERSION
|
|
|
|
|
2021-01-09 18:06:20 +00:00
|
|
|
RUN useradd -m -s /bin/false vmail
|
|
|
|
|
2023-08-01 15:42:57 +00:00
|
|
|
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:41 +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} \
|
2021-10-21 21:42:06 +00:00
|
|
|
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
|
|
|
|
|
2023-08-01 15:42:57 +00:00
|
|
|
RUN update-crypto-policies --set DEFAULT:SHA1 \
|
|
|
|
&& curl https://rspamd.com/rpm-stable/centos-9/rspamd.repo > /etc/yum.repos.d/rspamd.repo \
|
2021-01-09 18:06:20 +00:00
|
|
|
&& rpm --import https://rspamd.com/rpm/gpg.key \
|
2024-01-25 23:07:41 +00:00
|
|
|
&& dnf install -y rspamd-${RSPAMD_VERSION} \
|
2021-01-09 18:06:20 +00:00
|
|
|
&& dnf clean all \
|
2023-08-01 15:42:57 +00:00
|
|
|
&& rm -rf /var/cache/yum \
|
|
|
|
&& update-crypto-policies --set DEFAULT
|
2021-01-09 18:06:20 +00:00
|
|
|
|
|
|
|
EXPOSE 11332
|
|
|
|
|
|
|
|
CMD ["/usr/bin/rspamd", "-f", "--insecure"]
|