2021-08-27 18:20:58 +00:00
|
|
|
FROM docker.io/debian:bullseye-slim
|
2022-10-28 16:49:50 +00:00
|
|
|
ARG VERSION=3.3
|
2021-01-13 16:36:50 +00:00
|
|
|
|
2021-03-21 00:16:51 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates curl gnupg
|
2021-01-13 16:36:50 +00:00
|
|
|
|
2021-08-27 18:20:58 +00:00
|
|
|
RUN echo "deb https://rspamd.com/apt-stable/ bullseye main" > /etc/apt/sources.list.d/rspamd.list && \
|
|
|
|
echo "deb-src https://rspamd.com/apt-stable/ bullseye main" >> /etc/apt/sources.list.d/rspamd.list && \
|
2021-01-13 16:36:50 +00:00
|
|
|
curl -o - https://rspamd.com/apt-stable/gpg.key | apt-key add - && \
|
|
|
|
apt-get update && apt-get install -y --no-install-recommends rspamd="${VERSION}*"
|
|
|
|
|
|
|
|
RUN addgroup --system --gid 11332 rspamd
|
|
|
|
RUN adduser --system --uid 11332 --ingroup rspamd --home /var/lib/rspamd rspamd
|
|
|
|
|
|
|
|
COPY container/config /etc/rspamd
|
|
|
|
COPY container/run-rspamd /run-rspamd
|
|
|
|
RUN chown -R rspamd:rspamd /etc/rspamd
|
|
|
|
|
|
|
|
EXPOSE 11332 11333 11334
|
|
|
|
ENTRYPOINT ["/run-rspamd"]
|