From 447b10ead26ebe7229bfdbea2988c03c5099dc46 Mon Sep 17 00:00:00 2001 From: aptalca Date: Thu, 25 Feb 2021 12:05:42 -0500 Subject: [PATCH] fix py cryptography builds --- Dockerfile | 8 ++++++-- Dockerfile.aarch64 | 8 ++++++-- Dockerfile.armhf | 8 ++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2074629..e31addd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,11 +65,14 @@ LABEL maintainer="thelamer" RUN \ echo "**** install build packages ****" && \ apk add --no-cache --upgrade --virtual=build-dependencies \ - gcc \ + cargo \ + g++ \ libc-dev \ + libffi-dev \ libxml2-dev \ libxslt-dev \ make \ + openssl-dev \ python3-dev && \ echo "**** install packages ****" && \ apk add --no-cache \ @@ -85,7 +88,7 @@ RUN \ echo "**** install python packages ****" && \ pip3 install --no-cache-dir -U \ pip && \ - pip3 install --no-cache-dir \ + pip install --no-cache-dir \ apprise \ chardet \ lxml \ @@ -97,6 +100,7 @@ RUN \ build-dependencies && \ rm -rf \ /root/.cache \ + /root/.cargo \ /tmp/* # add local files and files from buildstage diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index bdd6877..f11da16 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -65,11 +65,14 @@ LABEL maintainer="thelamer" RUN \ echo "**** install build packages ****" && \ apk add --no-cache --upgrade --virtual=build-dependencies \ - gcc \ + cargo \ + g++ \ libc-dev \ + libffi-dev \ libxml2-dev \ libxslt-dev \ make \ + openssl-dev \ python3-dev && \ echo "**** install packages ****" && \ apk add --no-cache \ @@ -85,7 +88,7 @@ RUN \ echo "**** install python packages ****" && \ pip3 install --no-cache-dir -U \ pip && \ - pip3 install --no-cache-dir \ + pip install --no-cache-dir \ apprise \ chardet \ lxml \ @@ -97,6 +100,7 @@ RUN \ build-dependencies && \ rm -rf \ /root/.cache \ + /root/.cargo \ /tmp/* # add local files and files from buildstage diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 6691a88..68e5df4 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -65,11 +65,14 @@ LABEL maintainer="thelamer" RUN \ echo "**** install build packages ****" && \ apk add --no-cache --upgrade --virtual=build-dependencies \ - gcc \ + cargo \ + g++ \ libc-dev \ + libffi-dev \ libxml2-dev \ libxslt-dev \ make \ + openssl-dev \ python3-dev && \ echo "**** install packages ****" && \ apk add --no-cache \ @@ -85,7 +88,7 @@ RUN \ echo "**** install python packages ****" && \ pip3 install --no-cache-dir -U \ pip && \ - pip3 install --no-cache-dir \ + pip install --no-cache-dir \ apprise \ chardet \ lxml \ @@ -97,6 +100,7 @@ RUN \ build-dependencies && \ rm -rf \ /root/.cache \ + /root/.cargo \ /tmp/* # add local files and files from buildstage