Skip to content

Commit 591dea3

Browse files
committed
build: use pip --no-cache-dir not --no-cache
Use the proper name even though the shorter name is recognized.
1 parent e026ca0 commit 591dea3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/Docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ ARG pythonversion
8989

9090
RUN [ -z "${VERBOSE}" ] || set -xv; \
9191
CWD="$PWD" && \
92-
upgrades=$(python3 -m pip --no-cache --disable-pip-version-check \
92+
upgrades=$(python3 -m pip --no-cache-dir --disable-pip-version-check \
9393
list --outdated | awk 'NR > 2 {print $1}'); \
9494
if [ -n "$upgrades" ]; then \
9595
echo "Pip updating $upgrades"; \
96-
python -m pip --no-cache --disable-pip-version-check \
96+
python -m pip --no-cache-dir --disable-pip-version-check \
9797
install -U $upgrades < /dev/null; \
9898
else \
9999
echo "Nothing to pip update"; \
@@ -211,11 +211,11 @@ RUN apk --no-cache upgrade; \
211211
libstdc++ \
212212
libxapian \
213213
zstd-libs; \
214-
upgrades=$(python3 -m pip --no-cache --disable-pip-version-check \
214+
upgrades=$(python3 -m pip --no-cache-dir --disable-pip-version-check \
215215
list --outdated | awk 'NR > 2 {print $1}'); \
216216
if [ -n "$upgrades" ]; then \
217217
echo "Pip updating $upgrades"; \
218-
python -m pip --no-cache --disable-pip-version-check \
218+
python -m pip --no-cache-dir --disable-pip-version-check \
219219
install -U $upgrades < /dev/null; \
220220
else \
221221
echo "Nothing to pip update"; \

0 commit comments

Comments
 (0)