Skip to content

Commit

Permalink
Rspamd 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
feddar committed Aug 22, 2023
1 parent 8b0c84b commit 6c14212
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Dockerfile-3.6
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM neomediatech/ubuntu-base:22.04

ENV APP_VERSION=3.6 \
SERVICE=rspamd

LABEL maintainer="docker-dario@neomediatech.it" \
org.label-schema.version=$APP_VERSION \
org.label-schema.vcs-type=Git \
org.label-schema.vcs-url=https://github.com/Neomediatech/${SERVICE} \
org.label-schema.maintainer=Neomediatech

RUN apt-get update && apt-get -y dist-upgrade && \
apt-get install -y --no-install-recommends \
ca-certificates lsb-release wget gnupg && \
CODENAME=`lsb_release -c -s` && \
wget -O- https://rspamd.com/apt-stable/gpg.key | apt-key add - && \
echo "deb [arch=amd64] http://rspamd.com/apt-stable/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list && \
echo "deb-src [arch=amd64] http://rspamd.com/apt-stable/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list && \
apt-get update && \
apt-get --no-install-recommends install -y rspamd && \
rm -rf /var/lib/apt/lists/* && \
echo 'pidfile = false;' > /etc/rspamd/override.d/options.inc && \
mkdir -p /srv/scripts && \
wget -O /srv/scripts/logrotate.sh https://raw.githubusercontent.com/Neomediatech/assets/main/scripts/logrotate.sh && \
chmod +x /srv/scripts/logrotate.sh

COPY conf/ /etc/rspamd
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=20 CMD rspamadm control stat |grep uptime|head -1 || ( echo "no uptime, no party\!" && exit 1 )

ENTRYPOINT ["/entrypoint.sh"]
CMD [ "/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd" ]

0 comments on commit 6c14212

Please sign in to comment.