Skip to content

Commit

Permalink
Don't search filesystem mounts in docker build step
Browse files Browse the repository at this point in the history
Limit find cmd to /usr/ where __pycache__ files are located
  • Loading branch information
tomodachi committed May 30, 2023
1 parent 4013c48 commit 6e73554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM ubuntu:jammy-20230308
# Some tools like yamllint need this
# Pip needs this as well at the moment to install ansible
# (and potentially other packages)
# (and potentially other packages)
# See: https://github.com/pypa/pip/issues/10219
ENV LANG=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
Expand Down Expand Up @@ -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 / -type d -name '*__pycache__' -prune -exec rm -rf {} \;
&& find /usr -type d -name '*__pycache__' -prune -exec rm -rf {} \;

0 comments on commit 6e73554

Please sign in to comment.