Skip to content

Commit 95143fe

Browse files
authored
Merge pull request #14 from thelamer/master
need a cache directory for cryptography install on current pip version
2 parents 5304b54 + 4aec940 commit 95143fe

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ RUN \
2626
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
2727
fi && \
2828
pip install -U --no-cache-dir \
29-
pip && \
30-
pip install -U --no-cache-dir \
31-
cryptography \
32-
${LDAP_INSTALL} && \
29+
pip && \
30+
pip install -U \
31+
cryptography \
32+
${LDAP_INSTALL} && \
3333
echo "**** cleanup ****" && \
3434
apk del --purge \
35-
build-dependencies && \
35+
build-dependencies && \
3636
rm -rf \
37-
/tmp/*
37+
/tmp/* \
38+
/root/.cache/pip
3839

3940
# copy local files
4041
COPY root/ /

Dockerfile.aarch64

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ RUN \
2929
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
3030
fi && \
3131
pip install -U --no-cache-dir \
32-
pip && \
33-
pip install -U --no-cache-dir \
34-
cryptography \
35-
${LDAP_INSTALL} && \
32+
pip && \
33+
pip install -U \
34+
cryptography \
35+
${LDAP_INSTALL} && \
3636
echo "**** cleanup ****" && \
3737
apk del --purge \
38-
build-dependencies && \
38+
build-dependencies && \
3939
rm -rf \
40-
/tmp/*
40+
/tmp/* \
41+
/root/.cache/pip
4142

4243
# copy local files
4344
COPY root/ /

Dockerfile.armhf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ RUN \
2929
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
3030
fi && \
3131
pip install -U --no-cache-dir \
32-
pip && \
33-
pip install -U --no-cache-dir \
34-
cryptography \
35-
${LDAP_INSTALL} && \
32+
pip && \
33+
pip install -U \
34+
cryptography \
35+
${LDAP_INSTALL} && \
3636
echo "**** cleanup ****" && \
3737
apk del --purge \
38-
build-dependencies && \
38+
build-dependencies && \
3939
rm -rf \
40-
/tmp/*
40+
/tmp/* \
41+
/root/.cache/pip
4142

4243
# copy local files
4344
COPY root/ /

0 commit comments

Comments
 (0)