Skip to content

Commit ae34a98

Browse files
committed
clean cache
Signed-off-by: hwassman <[email protected]>
1 parent 86921f8 commit ae34a98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ RUN if [ $(expr "$BASE" : '.*python.*') -eq 0 ]; then \
102102
echo "Compiled python packages: $(cat /root/requirements_ubi9.txt)"; fi && \
103103
python3 -m pip install -r /root/requirements_ubi9.txt && \
104104
echo "Installed python version: $(python3 -V)" && \
105-
echo "Installed python packages: $(python3 -m pip list)"; else \
105+
echo "Installed python packages: $(python3 -m pip list)" && \
106+
yum clean all -y; else \
106107
echo "Already using python container as base image. No need to install it." && \
107108
python3 -m pip install -r /root/requirements.in && \
108109
echo "Installed python packages: $(python3 -m pip list)"; fi
109110

111+
RUN rm -rf /usr/bin/pip*
112+
110113
USER root
111114

112115
RUN mkdir -p /opt/IBM/bridge /opt/IBM/zimon /var/mmfs/gen && \

0 commit comments

Comments
 (0)