You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
429 B
Docker
23 lines
429 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 echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"
|
|
|
|
VOLUME ["/queue"]
|
|
|
|
CMD /start.py
|