docker/rspamd/Dockerfile

24 lines
721 B
Docker
Raw Normal View History

2022-07-26 15:32:02 +00:00
FROM almalinux:8
2021-01-09 18:06:20 +00:00
RUN useradd -m -s /bin/false vmail
RUN dnf install -y epel-release && dnf update -y \
&& dnf clean all \
&& rm -rf /var/cache/yum
RUN dnf install -y postfix-3.5.8 postfix-ldap-3.5.8 postfix-mysql-3.5.8 postfix-pgsql-3.5.8 \
2022-07-26 15:32:02 +00:00
dovecot-2.3.16 dovecot-pigeonhole-2.3.16 opendkim-2.11.0 opendmarc-1.4.1.1 \
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
RUN curl https://rspamd.com/rpm-stable/centos-8/rspamd.repo > /etc/yum.repos.d/rspamd.repo \
2021-01-09 18:06:20 +00:00
&& rpm --import https://rspamd.com/rpm/gpg.key \
2022-12-24 21:46:57 +00:00
&& dnf install -y rspamd-3.4 \
2021-01-09 18:06:20 +00:00
&& dnf clean all \
&& rm -rf /var/cache/yum
EXPOSE 11332
CMD ["/usr/bin/rspamd", "-f", "--insecure"]