This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.arm
58 lines (50 loc) · 1.53 KB
/
Dockerfile.arm
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
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM resin/raspberry-pi2-debian:latest
# shell to start from Kitematic
ENV DEBIAN_FRONTEND=noninteractive
ENV SHELL=/bin/bash
# install dependencies
RUN apt-get update && \
apt-get install -y apt-utils && \
apt-get upgrade -y && \
apt-get install -y \
cron \
imapfilter \
nano \
python \
python-pip \
pyzor \
razor \
rsyslog \
spamassassin \
unzip \
wget \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
/usr/bin/env python -m pip install docopt==0.6.2
WORKDIR /root
# install isbg
RUN wget https://github.com/dc55028/isbg/archive/master.zip && \
mv master.zip isbg.zip && \
unzip isbg.zip && \
cd isbg-master && \
python setup.py install && \
cd .. && \
rm -Rf isbg-master && \
rm isbg.zip
ADD files/* /root/
# prepare directories and files
RUN mkdir -p /var/spamassassin/bayesdb ; \
chown -R debian-spamd:mail /var/spamassassin ; \
mkdir .imapfilter ; \
mkdir accounts ; \
chmod u+x startup ; \
chmod u+x *.sh ; \
crontab cron_scans && rm cron_scans ; \
sed -i 's/ENABLED=0/ENABLED=1/;s/CRON=0/CRON=1/;s/^OPTIONS=".*"/OPTIONS="--allow-tell --max-children 5 --helper-home-dir -u debian-spamd -x --virtual-config-dir=\/var\/spamassassin"/' /etc/default/spamassassin ; \
echo "bayes_path /var/spamassassin/bayesdb/bayes" >> /etc/spamassassin/local.cf
# volumes
VOLUME /var/spamassassin
VOLUME /root/.imapfilter
VOLUME /root/accounts
CMD /root/startup && tail -n 0 -F /var/log/lastlog /var/log/syslog