-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.postfix
More file actions
19 lines (15 loc) · 860 Bytes
/
Dockerfile.postfix
File metadata and controls
19 lines (15 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM debian:stretch-slim
COPY etc/apt/apt.conf.d/no-install-suggests-recommends.apt.conf /etc/apt/apt.conf.d/
RUN apt-get update \
&& apt-get install -y bsd-mailx postfix rsyslog \
&& addgroup hostgroup \
&& adduser --gecos 'Host User' --ingroup hostgroup --disabled-password hostuser \
&& find /var/cache/apt /var/lib/apt -type f -delete \
&& true
COPY etc/rsyslog.d/stderr.conf /etc/rsyslog.d/
#COPY adjust-user adjust-term container-entrypoint container-postfix-entrypoint /usr/local/share/container-scripts/
COPY scripts/adjust-user scripts/adjust-term scripts/entrypoint scripts/exec /usr/local/share/container/scripts/
COPY entrypoint/postfix /usr/local/share/container/entrypoint/
EXPOSE 25
ENTRYPOINT ["/usr/local/share/container/scripts/entrypoint", "/usr/local/share/container/entrypoint/postfix"]
CMD ["/usr/lib/postfix/sbin/master", "-d"]