Skip to content

Commit

Permalink
Merge pull request #32 from darkwizard242/feature/ubuntu-noble-pip-in…
Browse files Browse the repository at this point in the history
…stall-fix

Remove EXTERNALLY-MANAGED file in python lib for installation of modules via pip
  • Loading branch information
darkwizard242 authored Mar 25, 2024
2 parents f53aa4d + 5d51cae commit f4bde63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ubuntu-24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ENV PIP_PKGS "ansible"
RUN DEBIAN_FRONTEND=non-interactive apt-get update -y \
&& DEBIAN_FRONTEND=non-interactive apt-get --no-install-recommends -y upgrade \
&& DEBIAN_FRONTEND=non-interactive apt-get install --no-install-recommends -y ${DEPENDENCIES} \
&& python3 -m pip install --no-cache-dir --break-system-packages -U ${PIP_PKGS} \
&& find /usr/lib/python3* -type f -name EXTERNALLY-MANAGED -exec rm -v {} \; \
&& python3 -m pip install --no-cache-dir -U ${PIP_PKGS} \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb \
&& for FILE in $(find /var/log -maxdepth 2 -type f); do echo "" > ${FILE}; done \
&& apt-get autoremove \
Expand Down

0 comments on commit f4bde63

Please sign in to comment.