From 2cf23e3104f9b8b20ca1aefd36e3e89be26fd090 Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Wed, 7 Jun 2023 01:16:12 +0800 Subject: [PATCH] Don't search filesystem mounts in docker build step (#10131) (#10194) Limit find cmd to /usr/ where __pycache__ files are located Co-authored-by: Mateusz Mojsiejuk --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6d3b0af85..d7221eb06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,4 +41,4 @@ RUN apt update -q \ && echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check \ && chmod a+x /usr/local/bin/kubectl \ && rm -rf /var/lib/apt/lists/* /var/log/* \ - && find / -type d -name '*__pycache__' -prune -exec rm -rf {} \; + && find /usr -type d -name '*__pycache__' -prune -exec rm -rf {} \;