diff --git a/Dockerfile b/Dockerfile index 88cb37d..7d65652 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,9 +91,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \ pip uninstall --break-system-packages --yes \ onnxruntime-gpu \ - && pip cache remove \ - onnxruntime-gpu \ - && pip install --break-system-packages \ + && pip --no-cache-dir install --break-system-packages \ onnxruntime-gpu \ --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ \ --extra-index-url https://pypi.org/simple \ diff --git a/megapak/Dockerfile b/megapak/Dockerfile index ede87c0..15098fa 100644 --- a/megapak/Dockerfile +++ b/megapak/Dockerfile @@ -174,9 +174,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ -r /builder-scripts/pak7.txt \ && pip uninstall --break-system-packages --yes \ onnxruntime-gpu \ - && pip cache remove \ - onnxruntime-gpu \ - && pip install --break-system-packages \ + && pip --no-cache-dir install --break-system-packages \ onnxruntime-gpu \ --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/ \ --extra-index-url https://pypi.org/simple \