-
Notifications
You must be signed in to change notification settings - Fork 7
/
JamesRunDockerfile
35 lines (27 loc) · 1.14 KB
/
JamesRunDockerfile
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
# Run James
#
# VERSION 1.0
FROM java:openjdk-8-jdk
# Ports that are used
#
# 25 SMTP without authentication
# 110 POP3
# 143 IMAP with startTLS enabled
# 465 SMTP with authentication and socketTLS enabled
# 587 SMTP with authentication and startTLS enabled
# 993 IMAP with socketTLS enabled
EXPOSE 25 110 143 465 587 993
WORKDIR /root
# Get data we need to run James : build results and configuration
ADD destination/james-server-app-3.0.0-beta5-SNAPSHOT-app.zip james-server-app-3.0.0-beta5-SNAPSHOT-app.zip
ADD destination/conf conf
# Unzip build result
RUN unzip james-server-app-3.0.0-beta5-SNAPSHOT-app.zip
# Copy configuration.
# Warning : we want to use the wrapper.conf file we just compiled.
RUN cp james-server-app-3.0.0-beta5-SNAPSHOT/conf/wrapper.conf .
RUN rm -r james-server-app-3.0.0-beta5-SNAPSHOT/conf/*
RUN cp -r conf/* james-server-app-3.0.0-beta5-SNAPSHOT/conf
RUN cp wrapper.conf james-server-app-3.0.0-beta5-SNAPSHOT/conf
WORKDIR /root/james-server-app-3.0.0-beta5-SNAPSHOT/bin
ENTRYPOINT ["./wrapper-linux-x86-64","../conf/wrapper.conf", "wrapper.syslog.ident=james", "wrapper.pidfile=../var/james.pid", "wrapper.daemonize=FALSE"]