diff --git a/alpine/Dockerfile b/alpine/Dockerfile
index 01f78d4b..ff8e95d3 100644
--- a/alpine/Dockerfile
+++ b/alpine/Dockerfile
@@ -40,11 +40,14 @@ RUN cd /depends \
     && ./install_imagequant.sh \
     && ./install_raqm.sh
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN /usr/sbin/adduser -D --uid 1001 pillow \
     && virtualenv /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3
 
 USER pillow
diff --git a/amazon-2-amd64/Dockerfile b/amazon-2-amd64/Dockerfile
index 7603e890..2c7c258d 100644
--- a/amazon-2-amd64/Dockerfile
+++ b/amazon-2-amd64/Dockerfile
@@ -45,11 +45,14 @@ RUN wget https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tgz \
     && cd .. \
     && rm -r Python-3.9.16 Python-3.9.16.tgz
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN bash -c "python3.9 -m pip install virtualenv \
     && python3.9 -m virtualenv --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3"
 
 ADD depends /depends
diff --git a/amazon-2023-amd64/Dockerfile b/amazon-2023-amd64/Dockerfile
index dcfb89e0..6af19ed2 100644
--- a/amazon-2023-amd64/Dockerfile
+++ b/amazon-2023-amd64/Dockerfile
@@ -38,11 +38,14 @@ ENV PATH="/root/.cargo/bin:${PATH}"
 
 RUN useradd --uid 1001 pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN bash -c "/usr/bin/pip3 install virtualenv \
     && /usr/bin/python3 -mvirtualenv -p /usr/bin/python3 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3"
 
 ADD depends /depends
diff --git a/arch/Dockerfile b/arch/Dockerfile
index 36f3fb87..8411bf68 100644
--- a/arch/Dockerfile
+++ b/arch/Dockerfile
@@ -41,11 +41,14 @@ RUN cd /depends \
      && ./install_imagequant.sh \
      && ./install_raqm.sh
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN /sbin/useradd -m -U --uid 1001 pillow \
     && virtualenv --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3
 
 USER pillow
diff --git a/centos-stream-9-amd64/Dockerfile b/centos-stream-9-amd64/Dockerfile
index 3dca1cea..adacbf62 100644
--- a/centos-stream-9-amd64/Dockerfile
+++ b/centos-stream-9-amd64/Dockerfile
@@ -35,11 +35,14 @@ RUN yum install -y \
 
 RUN useradd --uid 1001 pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN bash -c "python3.9 -m pip install virtualenv \
     && python3.9 -m virtualenv --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3"
 
 COPY depends /depends
diff --git a/debian-12-bookworm-amd64/Dockerfile b/debian-12-bookworm-amd64/Dockerfile
index 245d0fce..36c1e064 100644
--- a/debian-12-bookworm-amd64/Dockerfile
+++ b/debian-12-bookworm-amd64/Dockerfile
@@ -69,9 +69,12 @@ RUN useradd --uid 1001 pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.11 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/debian-12-bookworm-x86/Dockerfile b/debian-12-bookworm-x86/Dockerfile
index 9036e6a7..33a1d28d 100644
--- a/debian-12-bookworm-x86/Dockerfile
+++ b/debian-12-bookworm-x86/Dockerfile
@@ -69,9 +69,12 @@ RUN useradd -u 1001 pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.11 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/fedora-39-amd64/Dockerfile b/fedora-39-amd64/Dockerfile
index a387ee8d..b0247ea3 100644
--- a/fedora-39-amd64/Dockerfile
+++ b/fedora-39-amd64/Dockerfile
@@ -28,10 +28,13 @@ RUN dnf install -y \
 RUN useradd --uid 1001 pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/fedora-40-amd64/Dockerfile b/fedora-40-amd64/Dockerfile
index 246235af..a2afb2e0 100644
--- a/fedora-40-amd64/Dockerfile
+++ b/fedora-40-amd64/Dockerfile
@@ -28,10 +28,13 @@ RUN dnf install -y \
 RUN useradd --uid 1001 pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
-    && /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install numpy --only-binary=:all: || true \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/gentoo/Dockerfile b/gentoo/Dockerfile
index 6967946a..8e0e2e93 100644
--- a/gentoo/Dockerfile
+++ b/gentoo/Dockerfile
@@ -30,9 +30,12 @@ RUN emerge --quiet app-text/ghostscript-gpl dev-python/numpy
 RUN useradd --uid 1001 pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-22.04-jammy-amd64-valgrind/Dockerfile b/ubuntu-22.04-jammy-amd64-valgrind/Dockerfile
index 3c3293ea..d1b0294a 100644
--- a/ubuntu-22.04-jammy-amd64-valgrind/Dockerfile
+++ b/ubuntu-22.04-jammy-amd64-valgrind/Dockerfile
@@ -38,9 +38,12 @@ RUN useradd --uid 1001 pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.10-dbg --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout pytest-valgrind \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout pytest-valgrind \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-22.04-jammy-amd64/Dockerfile b/ubuntu-22.04-jammy-amd64/Dockerfile
index c4a87de1..d00d44c4 100644
--- a/ubuntu-22.04-jammy-amd64/Dockerfile
+++ b/ubuntu-22.04-jammy-amd64/Dockerfile
@@ -45,9 +45,12 @@ RUN useradd --uid 1001 pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.10 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pyside6 pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pyside6 pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-22.04-jammy-arm64v8/Dockerfile b/ubuntu-22.04-jammy-arm64v8/Dockerfile
index 54b97f55..bb0bbd21 100644
--- a/ubuntu-22.04-jammy-arm64v8/Dockerfile
+++ b/ubuntu-22.04-jammy-arm64v8/Dockerfile
@@ -36,9 +36,12 @@ RUN useradd --uid 1001 pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.10 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-24.04-noble-amd64/Dockerfile b/ubuntu-24.04-noble-amd64/Dockerfile
index 04e5995c..6966bc96 100644
--- a/ubuntu-24.04-noble-amd64/Dockerfile
+++ b/ubuntu-24.04-noble-amd64/Dockerfile
@@ -45,9 +45,12 @@ RUN useradd pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pyside6 pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pyside6 pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-24.04-noble-ppc64le/Dockerfile b/ubuntu-24.04-noble-ppc64le/Dockerfile
index 2759042d..714c4648 100644
--- a/ubuntu-24.04-noble-ppc64le/Dockerfile
+++ b/ubuntu-24.04-noble-ppc64le/Dockerfile
@@ -35,9 +35,12 @@ RUN useradd pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
diff --git a/ubuntu-24.04-noble-s390x/Dockerfile b/ubuntu-24.04-noble-s390x/Dockerfile
index e880ae71..6396cf02 100644
--- a/ubuntu-24.04-noble-s390x/Dockerfile
+++ b/ubuntu-24.04-noble-s390x/Dockerfile
@@ -33,9 +33,12 @@ RUN useradd pillow \
     && mkdir /home/pillow \
     && chown pillow:pillow /home/pillow
 
+ARG PIP_DISABLE_PIP_VERSION_CHECK=1
+ARG PIP_NO_CACHE_DIR=1
+
 RUN virtualenv -p /usr/bin/python3.12 --system-site-packages /vpy3 \
-    && /vpy3/bin/pip install --no-cache-dir --upgrade pip \
-    && /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
+    && /vpy3/bin/pip install --upgrade pip \
+    && /vpy3/bin/pip install cffi olefile pytest pytest-cov pytest-timeout \
     && chown -R pillow:pillow /vpy3
 
 ADD depends /depends
