Skip to content

Commit

Permalink
need a cache directory for cryptography install on current pip version
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jan 23, 2019
1 parent 5304b54 commit 4aec940
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ /
Expand Down
13 changes: 7 additions & 6 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -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/ /
Expand Down
13 changes: 7 additions & 6 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
Expand Up @@ -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/ /
Expand Down

0 comments on commit 4aec940

Please sign in to comment.