2022-09-27 22:09:07 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-11-17 22:00:04 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
# postfix image
|
2022-09-27 22:09:07 +02:00
|
|
|
FROM base
|
2021-11-04 15:22:12 +02:00
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
ARG VERSION=local
|
2021-11-17 22:00:04 +02:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
RUN set -euxo pipefail \
|
2022-10-08 15:55:40 +02:00
|
|
|
; apk add --no-cache cyrus-sasl-login logrotate postfix postfix-pcre rsyslog
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
COPY conf/ /conf/
|
|
|
|
COPY start.py /
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2022-10-08 15:55:40 +02:00
|
|
|
RUN echo $VERSION >/version
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2018-04-21 14:46:01 +02:00
|
|
|
EXPOSE 25/tcp 10025/tcp
|
2022-12-28 17:26:46 +02:00
|
|
|
HEALTHCHECK --start-period=350s CMD /usr/sbin/postfix status
|
2022-09-27 22:09:07 +02:00
|
|
|
|
2019-10-11 08:46:23 +02:00
|
|
|
VOLUME ["/queue"]
|
2018-04-21 14:46:01 +02:00
|
|
|
|
2017-09-24 14:34:46 +02:00
|
|
|
CMD /start.py
|