From 4aec9407c9e84109fb5fb6d6d21486ed89db182a Mon Sep 17 00:00:00 2001 From: thelamer Date: Tue, 22 Jan 2019 19:08:58 -0800 Subject: [PATCH] need a cache directory for cryptography install on current pip version --- Dockerfile | 13 +++++++------ Dockerfile.aarch64 | 13 +++++++------ Dockerfile.armhf | 13 +++++++------ 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc851cf..3ffd9cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,15 +26,16 @@ RUN \ LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \ fi && \ pip install -U --no-cache-dir \ - pip && \ - pip install -U --no-cache-dir \ - cryptography \ - ${LDAP_INSTALL} && \ + pip && \ + pip install -U \ + cryptography \ + ${LDAP_INSTALL} && \ echo "**** cleanup ****" && \ apk del --purge \ - build-dependencies && \ + build-dependencies && \ rm -rf \ - /tmp/* + /tmp/* \ + /root/.cache/pip # copy local files COPY root/ / diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index c3c8a39..93520ac 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -29,15 +29,16 @@ RUN \ LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \ fi && \ pip install -U --no-cache-dir \ - pip && \ - pip install -U --no-cache-dir \ - cryptography \ - ${LDAP_INSTALL} && \ + pip && \ + pip install -U \ + cryptography \ + ${LDAP_INSTALL} && \ echo "**** cleanup ****" && \ apk del --purge \ - build-dependencies && \ + build-dependencies && \ rm -rf \ - /tmp/* + /tmp/* \ + /root/.cache/pip # copy local files COPY root/ / diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 26f2bfe..4325107 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -29,15 +29,16 @@ RUN \ LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \ fi && \ pip install -U --no-cache-dir \ - pip && \ - pip install -U --no-cache-dir \ - cryptography \ - ${LDAP_INSTALL} && \ + pip && \ + pip install -U \ + cryptography \ + ${LDAP_INSTALL} && \ echo "**** cleanup ****" && \ apk del --purge \ - build-dependencies && \ + build-dependencies && \ rm -rf \ - /tmp/* + /tmp/* \ + /root/.cache/pip # copy local files COPY root/ /