coreos-home-server/service/rspamd/Containerfile

21 lines
812 B
Plaintext
Raw Normal View History

FROM docker.io/debian:bullseye-slim
2023-03-25 13:25:20 +00:00
ARG VERSION=3.5
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates curl gnupg
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 && \
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"]