2022-09-27 22:09:07 +02:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2021-11-17 22:00:04 +02:00
|
|
|
|
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 \
|
|
|
|
&& apk add --no-cache postfix postfix-pcre cyrus-sasl-login rsyslog logrotate \
|
|
|
|
&& pip install --no-cache-dir --only-binary=:all: postfix-mta-sts-resolver==1.0.1 \
|
|
|
|
|| ( apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev py3-wheel libffi-dev \
|
|
|
|
&& pip3 install postfix-mta-sts-resolver==1.0.1 \
|
|
|
|
&& apk del .build-deps )
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2017-09-24 14:34:46 +02:00
|
|
|
COPY conf /conf
|
|
|
|
COPY start.py /start.py
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2022-09-27 22:09:07 +02:00
|
|
|
RUN echo $VERSION >> /version
|
|
|
|
|
2018-04-21 14:46:01 +02:00
|
|
|
EXPOSE 25/tcp 10025/tcp
|
2022-09-27 22:09:07 +02:00
|
|
|
HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"
|
|
|
|
|
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
|