forked from wallix/PEPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (34 loc) · 948 Bytes
/
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
# The main peps container
# Based on our generic opa container which has mlstatelibs and node built in.
FROM opa:latest
MAINTAINER MLstate <[email protected]>
# Download the peps executable
RUN curl -sf -o /tmp/peps.zip -L https://github.com/MLstate/PEPS/releases/download/0.9.9/peps.zip
RUN mkdir -p /peps && cd /peps && unzip -q /tmp/peps.zip
RUN rm /tmp/peps.zip
RUN /usr/bin/npm install -g \
ursa \
simplesmtp \
rai \
nodemailer \
ldapjs \
iconv \
nodemailer-smtp-transport \
mailparser \
html-to-text \
tweetnacl \
intl-messageformat intl
# We need to add the webmail modules to the node path
ENV NODE_PATH $NODE_PATH:/peps/_build
# Get configuration data
VOLUME ["/etc/peps"]
# ADD ../domain /etc/peps/domain
# FIXME: SMTP out
# EXPOSE 25
EXPOSE 443
# SMTP in port
EXPOSE 8999
# Add startup scripts (or to /etc/service/peps?)
ADD peps.sh /etc/my_init.d/10peps.sh
# Start the init daemon
CMD ["/sbin/my_init"]