forked from bokysan/docker-postfix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 828 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 828 Bytes
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
FROM alpine:edge
MAINTAINER Bojan Cekrlic
# You can set this variables when running the image to override the host name or
# foward the messages to another server
# ENV HOSTNAME
# Hostname that will be used in the outgoing mail
# ENV RELAYHOST
# The relay host for this server
# ENV ALLOWED_SENDER_DOMAINS
# Limit the list of sending domains to this list only
RUN true && \
apk add --no-cache --update postfix ca-certificates supervisor rsyslog bash && \
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)
COPY supervisord.conf /etc/supervisord.conf
COPY rsyslog.conf /etc/rsyslog.conf
COPY postfix.sh /postfix.sh
RUN chmod +x /postfix.sh
VOLUME [ "/var/spool/postfix", "/etc/postfix" ]
USER root
WORKDIR /tmp
EXPOSE 587
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]