commit
55dfd56d11
|
@ -1,22 +1,26 @@
|
||||||
FROM ubuntu:bionic
|
FROM debian:buster-slim
|
||||||
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG CODENAME=buster
|
||||||
ENV LC_ALL C
|
ENV LC_ALL C
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
tzdata \
|
tzdata \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
&& apt-key adv --fetch-keys https://rspamd.com/apt/gpg.key \
|
dnsutils \
|
||||||
&& echo "deb https://rspamd.com/apt-stable/ bionic main" > /etc/apt/sources.list.d/rspamd.list \
|
&& apt-key adv --fetch-keys https://rspamd.com/apt-stable/gpg.key \
|
||||||
&& apt-get update && apt-get install -y rspamd dnsutils \
|
&& echo "deb [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" > /etc/apt/sources.list.d/rspamd.list \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& echo "deb-src [arch=amd64] https://rspamd.com/apt-stable/ $CODENAME main" >> /etc/apt/sources.list.d/rspamd.list \
|
||||||
&& apt-get autoremove --purge \
|
&& apt-get update \
|
||||||
&& apt-get clean \
|
&& apt-get --no-install-recommends -y install rspamd \
|
||||||
&& mkdir -p /run/rspamd \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& chown _rspamd:_rspamd /run/rspamd
|
&& apt-get autoremove --purge \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& mkdir -p /run/rspamd \
|
||||||
|
&& chown _rspamd:_rspamd /run/rspamd
|
||||||
|
|
||||||
COPY settings.conf /etc/rspamd/settings.conf
|
COPY settings.conf /etc/rspamd/settings.conf
|
||||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
|
|
Loading…
Reference in New Issue