diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root index 8b925a68909..e549f3c90bb 100644 --- a/docker/Dockerfile.non_root +++ b/docker/Dockerfile.non_root @@ -124,7 +124,8 @@ RUN for i in 1 2 3; do \ rm -rf "$d" && cp -rL "$GLOBAL/diff" "$d"; \ done \ && find / -path "*/node_modules/npm/package.json" -exec \ -sed -i 's/"tar": "\^7\.5\.[0-9]*"/"tar": "^7.5.10"/g; s/"minimatch": "\^10\.[0-9.]*"/"minimatch": "^10.2.4"/g' {} + 2>/dev/null && \ + && find / -path "*/node_modules/npm/package.json" -exec \ +sed -i 's/"tar": "\^7\.5\.[0-9]*"/"tar": "^7.5.10"/g; s/"minimatch": "\^10\.[0-9.]*"/"minimatch": "^10.2.4"/g' {} + 2>/dev/null \ && npm cache clean --force \ && { apk del --no-cache npm 2>/dev/null || true; }