1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-18 17:40:38 +02:00
Mailu/core/postfix/Dockerfile
Florent Daigniere 83ea708490 fix healthcheck
2022-12-28 16:55:24 +01:00

23 lines
400 B
Docker

# syntax=docker/dockerfile-upstream:1.4.3
# postfix image
FROM base
ARG VERSION=local
LABEL version=$VERSION
RUN set -euxo pipefail \
; apk add --no-cache cyrus-sasl-login logrotate postfix postfix-pcre rsyslog
COPY conf/ /conf/
COPY start.py /
RUN echo $VERSION >/version
EXPOSE 25/tcp 10025/tcp
HEALTHCHECK --start-period=350s CMD /usr/sbin/postfix status
VOLUME ["/queue"]
CMD /start.py