-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 904 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 904 Bytes
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
FROM fmantuano/spamscope-deps
# environment variables
ARG SPAMSCOPE_VER="develop"
ARG CURATOR_VER="5.5.4"
ENV SPAMASSASSIN_ENABLED="True" \
SPAMSCOPE_CONF_FILE="/etc/spamscope/spamscope.yml" \
SPAMSCOPE_PATH="/opt/spamscope" \
THUG_ENABLED="True"
# labels
LABEL description="Spamscope: Advanced Spam Analysis" \
spamscope_version=${SPAMSCOPE_VER}
# install SpamScope
RUN set -ex; \
mkdir -p "/etc/spamscope" "/opt/curator"; \
git clone -b ${SPAMSCOPE_VER} --single-branch https://github.com/SpamScope/spamscope.git ${SPAMSCOPE_PATH}; \
cd $SPAMSCOPE_PATH; \
pip install -r requirements_optional.txt; \
python setup.py install; \
sparse jar -s; \
pip install elasticsearch-curator==${CURATOR_VER};
COPY curator/*.yml /opt/curator/
COPY curator/00daily-elastic-maintenance /etc/cron.daily/
COPY my_init.d/*.sh /etc/my_init.d/
WORKDIR ${SPAMSCOPE_PATH}