-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (35 loc) · 1.82 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
FROM alpine:edge
RUN apk update
RUN apk add getmail daemontools ansible~=2.6 --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
# maildrop
RUN wget -c https://downloads.sourceforge.net/project/courier/maildrop/2.9.3/maildrop-2.9.3.tar.bz2 && \
wget -c https://downloads.sourceforge.net/project/courier/courier-unicode/2.0/courier-unicode-2.0.tar.bz2 && \
apk add g++ make pcre-dev perl file && \
tar xjvfp courier-unicode-2.0.tar.bz2 && rm -f courier-unicode-2.0.tar.bz2 && \
cd courier-unicode-2.0 && ./configure && make && make install && \
cd .. && rm -rf courier-unicode-2.0 && \
tar xjvfp maildrop-2.9.3.tar.bz2 && rm -f maildrop-2.9.3.tar.bz2 && \
cd maildrop-2.9.3 && mkdir /var/spool/mail && ./configure && make && make install-strip && \
cd .. && rm -rf maildrop-2.9.3 && \
apk del g++ make perl
RUN apk add git
RUN apk add py-pip && pip install -e git+https://github.com/dbohdan/remarshal@v0.8.0#egg=Remarshal
RUN apk add bash coreutils msmtp dovecot shadow dialog ncurses util-linux
RUN git clone https://github.com/bats-core/bats-core && \
cd bats-core && git checkout v1.1.0 && ./install.sh /usr/local && cd .. && rm -rf bats-core
RUN apk add nodejs npm && npm install -g ajv-cli
RUN ln -sf /usr/bin/msmtp /usr/sbin/sendmail
# Stable SIT
RUN apk add curl && curl -s https://sit.fyi/install.sh | sh
RUN echo "export PATH=/root/.sit-install:\$PATH" >> /root/.bashrc
# Last known master
RUN mkdir -p /root/.sit-install/master
COPY sit/target/x86_64-unknown-linux-musl/release/sit /root/.sit-install/master/
VOLUME [ "/etc/sit-inbox", "/var/lib/targets", "/var/run/oldmail" ]
ADD startup.sh /usr/bin/startup
ADD email-ingress /usr/bin/email-ingress
ADD playbook /playbook
ADD ansible /etc/ansible
ADD dovecot.conf /etc/dovecot/dovecot.conf
ADD schema.yaml /
CMD [ "startup" ]