Use HA wheels during build (#2449)

* Use HA wheels during build

* BUILD_ARCH arg

* Remove only-binary flag

* Pin cryptography to 37.0.0 for wheel

* Pin cryptography to 36.0.2 for wheel

* Pass cryptography version as arg
This commit is contained in:
Mike Degatano
2022-04-28 02:11:18 -04:00
committed by GitHub
parent 10dd165d5c
commit 2b2eb8ff23
4 changed files with 11 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ FROM $BUILD_FROM
# setup base
ARG \
BUILD_ARCH \
CRYPTOGRAPHY_VERSION \
CERTBOT_VERSION \
CERTBOT_DNS_DIRECTADMIN_VERSION \
CERTBOT_NETCUP_VERSION \
@@ -22,7 +24,9 @@ RUN \
musl-dev \
openssl-dev \
cargo \
&& pip3 install --no-cache-dir \
&& pip3 install --no-cache-dir --find-links \
"https://wheels.home-assistant.io/alpine-$(cut -d '.' -f 1-2 < /etc/alpine-release)/${BUILD_ARCH}/" \
cryptography==${CRYPTOGRAPHY_VERSION} \
certbot==${CERTBOT_VERSION} \
certbot-dns-cloudflare==${CERTBOT_VERSION} \
certbot-dns-cloudxns==${CERTBOT_VERSION} \