From 4b0694705cc4b3291e82734f17b2771f3aed95de Mon Sep 17 00:00:00 2001 From: Erriez Date: Fri, 24 Dec 2021 12:14:30 +0100 Subject: [PATCH] Fix build dependencies pycares --- core/postfix/Dockerfile | 7 ++++--- towncrier/newsfragments/2106.fix | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 towncrier/newsfragments/2106.fix diff --git a/core/postfix/Dockerfile b/core/postfix/Dockerfile index 39ea6eee..bbb0bbe3 100644 --- a/core/postfix/Dockerfile +++ b/core/postfix/Dockerfile @@ -19,9 +19,10 @@ RUN pip3 install socrate==0.2.0 RUN pip3 install "podop>0.2.5" # Image specific layers under this line -RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev -RUN pip3 install --no-binary :all: postfix-mta-sts-resolver==1.0.1 -RUN apk del .build-deps gcc musl-dev python3-dev +# 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 apk add --no-cache postfix postfix-pcre cyrus-sasl-login rsyslog logrotate diff --git a/towncrier/newsfragments/2106.fix b/towncrier/newsfragments/2106.fix new file mode 100644 index 00000000..ca2a4014 --- /dev/null +++ b/towncrier/newsfragments/2106.fix @@ -0,0 +1 @@ +Fix build dependencies postfix-mta-sts-resolver. \ No newline at end of file