GHP publish
This commit is contained in:
24
rspamd/Dockerfile
Normal file
24
rspamd/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM centos:8
|
||||
|
||||
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 --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm \
|
||||
&& dnf install -y --enablerepo=gf-plus postfix3-3.5.8 postfix3-ldap-3.5.8 postfix3-mysql-3.5.8 postfix3-pgsql-3.5.8 \
|
||||
&& dnf install -y dovecot-2.3.8 dovecot-pigeonhole-2.3.8 opendkim-2.11.0 opendmarc-1.3.2 \
|
||||
&& dnf install -y cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
|
||||
&& 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 \
|
||||
&& rpm --import https://rspamd.com/rpm/gpg.key \
|
||||
&& dnf install -y rspamd \
|
||||
&& dnf clean all \
|
||||
&& rm -rf /var/cache/yum
|
||||
|
||||
EXPOSE 11332
|
||||
|
||||
CMD ["/usr/bin/rspamd", "-f", "--insecure"]
|
13
rspamd/Makefile
Normal file
13
rspamd/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
VERSION=2.6
|
||||
IMAGE=rspamd
|
||||
REGISTRY=registry.0xace.cc
|
||||
|
||||
.PHONY: build push all
|
||||
|
||||
build:
|
||||
docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) .
|
||||
|
||||
push:
|
||||
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
|
||||
|
||||
all: build push
|
Reference in New Issue
Block a user