"Fossies" - the Fresh Open Source Software Archive

Member "rspamd-1.7.9/docker/Dockerfile" (1 Aug 2018, 1062 Bytes) of package /linux/misc/rspamd-1.7.9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Dockerfile": 1.7.1_vs_1.7.2.

    1 FROM debian:stretch
    2 
    3 RUN	apt-get update && apt-get install -y --no-install-recommends gnupg dirmngr && rm -rf /var/lib/apt/lists/*
    4 
    5 RUN	set -x \
    6 # gpg: key FFA232EDBF21E25E: public key "Rspamd Nightly Builds (Rspamd Nightly Builds) <vsevolod@highsecure.ru>" imported
    7 	&& key='3FA347D5E599BE4595CA2576FFA232EDBF21E25E' \
    8 	&& export GNUPGHOME="$(mktemp -d)" \
    9 	&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" \
   10 	&& gpg --export "$key" > /etc/apt/trusted.gpg.d/rspamd.gpg \
   11 	&& rm -rf "$GNUPGHOME" \
   12 	&& apt-key list > /dev/null
   13 
   14 RUN	echo "deb http://rspamd.com/apt-stable/ stretch main" > /etc/apt/sources.list.d/rspamd.list
   15 
   16 RUN	apt-get update \
   17 	&& apt-get install -y rspamd \
   18 	&& rm -rf /var/lib/apt/lists/*
   19 
   20 RUN	echo 'type = "console";' > /etc/rspamd/override.d/logging.inc \
   21 	&& echo 'bind_socket = "*:11334";' > /etc/rspamd/override.d/worker-controller.inc \
   22 	&& echo 'pidfile = false;' > /etc/rspamd/override.d/options.inc
   23 
   24 VOLUME	[ "/var/lib/rspamd" ]
   25 
   26 CMD	[ "/usr/bin/rspamd", "-f", "-u", "_rspamd", "-g", "_rspamd" ]
   27 
   28 EXPOSE	11333 11334