Skip to content

Commit d074feb

Browse files
committed
remove pip
1 parent 34122d2 commit d074feb

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
@@ -96,7 +96,7 @@ RUN if [ $(expr "$BASE" : '.*python.*') -eq 0 ]; then \
9696
python3 -m pip install -r /root/requirements_ubi10.txt && \
9797
echo "Installed python version: $(python3 -V)" && \
9898
echo "Installed python packages: $(python3 -m pip list)" && \
99-
yum clean all -y && rm -rf /usr/bin/pip*; else \
99+
yum clean all -y && rm -rf /usr/bin/pip* && rm -rf /usr/lib/python3.12/site-packages/pip*; else \
100100
echo "Already using python container as base image. No need to install it." && \
101101
python3 -m pip install -r /root/requirements.in && \
102102
echo "Installed python packages: $(python3 -m pip list)"; fi

0 commit comments

Comments
 (0)