From ecfa13e739dfe1752b9379af8838749c36b8408d Mon Sep 17 00:00:00 2001 From: Mateusz Mojsiejuk Date: Mon, 29 May 2023 22:22:34 +0200 Subject: [PATCH] Don't search filesystem mounts in docker build step Limit it to /usr where all __pycache__ files are located --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 23379428993..2612fd6aed6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,4 +38,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 / -mount -type d -name '*__pycache__' -prune -exec rm -rf {} \; + && find /usr -type d -name '*__pycache__' -prune -exec rm -rf {} \;