mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
23 lines
633 B
Docker
23 lines
633 B
Docker
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
|
|
#ENV RELAYHOST
|
|
|
|
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" ]
|
|
|
|
USER root
|
|
WORKDIR /tmp
|
|
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
|
|