forked from wallix/PEPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (27 loc) · 1.09 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
FROM phusion/baseimage:0.9.16
MAINTAINER MLstate <[email protected]>
ENV HOME /root
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install python-software-properties g++ make git curl
RUN curl -sL https://deb.nodesource.com/setup | sudo bash -
RUN DEBIAN_FRONTEND=noninteractive apt-get -y -q install nodejs
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install Haraka
RUN npm install -g Haraka
RUN haraka -i /usr/local/haraka
# Configure domain
ADD ./domain /usr/local/haraka/config/host_list
# Configure plugins
ADD ./plugins/smtpout.js /usr/local/haraka/plugins/smtpout.js
ADD ./config/plugins /usr/local/haraka/config/plugins
ADD ./config/smtp.ini /usr/local/haraka/config/
RUN cd /usr/local/haraka && npm install
# Create haraka runit service
RUN mkdir /etc/service/haraka
ADD haraka.sh /etc/service/haraka/run
EXPOSE 25
# EXPOSE 465
# Start the init daemon - runit will launch the Haraka process
CMD ["/sbin/my_init"]