forked from tiredofit/docker-rspamd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (41 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM docker.io/tiredofit/alpine:edge
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
### Disable Features From Base Image
ENV CONTAINER_ENABLE_MESSAGING=false
### Install Dependencies
RUN set -x && \
apk update && \
apk upgrade && \
apk add -t .rspamd-build-deps \
py3-pip \
redis \
&& \
apk add -t .rspamd-run-deps \
openssl \
python3 \
rspamd \
rspamd-client \
rspamd-controller \
rspamd-fuzzy \
rspamd-proxy \
rspamd-utils \
rsyslog \
&& \
\
pip3 install \
configparser \
inotify \
&& \
\
mkdir /run/rspamd && \
mkdir -p /assets/rspamd && \
mv /etc/rspamd/maps.d /assets/rspamd/ && \
mv /usr/bin/redis-cli /usr/sbin && \
\
### Cleanup
apk del .rspamd-build-deps && \
rm -rf /etc/logrotate.d/* /var/cache/apk/* /usr/src/*
### Networking Configuration
EXPOSE 11333 11334 11335
### Add Files
ADD install /