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 \
|
2023-04-12 21:22:44 +02:00
|
|
|
; apk add --no-cache cyrus-sasl-login postfix postfix-pcre logrotate
|
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
|
|
|
|
2023-01-04 20:19:43 +02:00
|
|
|
#EXPOSE 25/tcp 10025/tcp
|
2023-04-21 14:42:25 +02:00
|
|
|
HEALTHCHECK --start-period=30s CMD ! /usr/libexec/postfix/master -t
|
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
|