2108: Fix build dependencies pycares r=mergify[bot] a=Erriez

## What type of PR?

Fix missing build dependencies `postfix-mta-sts-resolver` for `pycares` which requires `py3-wheel` and `libffi-dev` packages.
Restore virtual build in single RUN line.

## What does this PR do?

### Related issue(s)
- Mention an issue like: #2106
- Auto close an issue like: closes #2106

Co-authored-by: Erriez <Erriez@users.noreply.github.com>
master
bors[bot] 3 years ago committed by GitHub
commit 23537b513d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,9 +19,10 @@ RUN pip3 install socrate==0.2.0
RUN pip3 install "podop>0.2.5" RUN pip3 install "podop>0.2.5"
# Image specific layers under this line # Image specific layers under this line
RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev # Building pycares from source requires py3-wheel and libffi-dev packages
RUN pip3 install --no-binary :all: postfix-mta-sts-resolver==1.0.1 RUN apk add --no-cache --virtual .build-deps gcc musl-dev python3-dev py3-wheel libffi-dev \
RUN apk del .build-deps gcc musl-dev python3-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 RUN apk add --no-cache postfix postfix-pcre cyrus-sasl-login rsyslog logrotate

@ -0,0 +1 @@
Fix build dependencies postfix-mta-sts-resolver.
Loading…
Cancel
Save