diff --git a/core/postfix/Dockerfile b/core/postfix/Dockerfile index f9285ebf..b048a15e 100644 --- a/core/postfix/Dockerfile +++ b/core/postfix/Dockerfile @@ -22,9 +22,9 @@ RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev \ # Image specific layers under this line # Building pycares from source requires py3-wheel and libffi-dev packages -RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev py3-wheel libffi-dev \ - && pip3 install --no-binary :all: postfix-mta-sts-resolver==1.0.1 \ - && apk del .build-deps +RUN pip install --no-cache-dir --extra-index-url=https://www.piwheels.org/simple --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 ) RUN apk add --no-cache postfix postfix-pcre cyrus-sasl-login rsyslog logrotate @@ -37,4 +37,4 @@ VOLUME ["/queue"] CMD /start.py HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix" -RUN echo $VERSION >> /version \ No newline at end of file +RUN echo $VERSION >> /version