forked from GriffinPlus/docker-zimbra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (45 loc) · 1.61 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
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:18.04
MAINTAINER Sascha Falk <[email protected]>
# Update image and install additional packages
# -----------------------------------------------------------------------------
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get -y update && \
apt-get -y install \
debootstrap \
dnsmasq \
iproute2 \
iptables \
sed && \
apt-get -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy prepared files into the image
# -----------------------------------------------------------------------------
COPY target /
RUN \
mkdir /data && \
chmod 750 /docker-entrypoint.sh
# Volumes
# -----------------------------------------------------------------------------
VOLUME [ "/data" ]
# Expose ports
# -----------------------------------------------------------------------------
# 25/tcp - SMTP (for incoming mail)
# 80/tcp - HTTP (for web mail clients)
# 110/tcp - POP3 (for mail clients)
# 143/tcp - IMAP (for mail clients)
# 443/tcp - HTTP over TLS (for web mail clients)
# 465/tcp - SMTP over SSL (for mail clients)
# 587/tcp - SMTP (submission, for mail clients)
# 993/tcp - IMAP over TLS (for mail clients)
# 995/tcp - POP3 over TLS (for mail clients)
# 5222/tcp - XMPP
# 5223/tcp - XMPP (default legacy port)
# 7071/tcp - HTTPS (admin panel, https://<host>/zimbraAdmin)
# -----------------------------------------------------------------------------
EXPOSE 25 80 110 143 443 465 587 993 995 5222 5223 7071
# configure container startup
# -----------------------------------------------------------------------------
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "run" ]