Skip to content

Commit ce23667

Browse files
tomodachipedromcpedro
authored andcommitted
Don't search filesystem mounts in docker build step (kubernetes-sigs#10131)
Limit find cmd to /usr/ where __pycache__ files are located
1 parent c14cf99 commit ce23667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ RUN apt update -q \
4141
&& echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check \
4242
&& chmod a+x /usr/local/bin/kubectl \
4343
&& rm -rf /var/lib/apt/lists/* /var/log/* \
44-
&& find / -type d -name '*__pycache__' -prune -exec rm -rf {} \;
44+
&& find /usr -type d -name '*__pycache__' -prune -exec rm -rf {} \;

0 commit comments

Comments
 (0)