mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-02-25 07:02:56 +08:00
hosts's username and password, if your remote host requires authentication. NEW FEATURE: The possibility to execute third party scripts. This should make extending this image easier. REFACTORING: Dockerfile now starts with run.sh instead of suprevisor. This makes it much easier to see any errors that might creep into the code. Also note that the script now relies on POSIX-compliant commands only so the executor has been changed from /bin/bash to /bin/sh.
23 lines
649 B
Docker
23 lines
649 B
Docker
FROM alpine:edge
|
|
MAINTAINER Bojan Cekrlic - https://github.com/bokysan/docker-postfix/
|
|
|
|
# See README.md for details
|
|
|
|
RUN true && \
|
|
apk add --no-cache --update postfix ca-certificates supervisor rsyslog bash && \
|
|
apk add --no-cache --upgrade musl musl-utils && \
|
|
(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 run.sh /run.sh
|
|
RUN chmod +x /run.sh
|
|
|
|
VOLUME [ "/var/spool/postfix", "/etc/postfix" ]
|
|
|
|
USER root
|
|
WORKDIR /tmp
|
|
|
|
EXPOSE 587
|
|
#ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
|
ENTRYPOINT ["/run.sh"]
|