File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ RUN for pkg in golang-go golang git binutils wget policykit-1 packagekit gnupg2
195195 apt-get autoremove -y && \
196196 apt-get clean
197197
198- # 5. Force upgrade vulnerable Python runtime libraries and purge unused submodules
198+ # 5. Force upgrade vulnerable Python runtime libraries and purge unused submodules and conda cache
199199RUN python -m pip install --upgrade --no-cache-dir \
200200 pip \
201201 wheel \
@@ -205,7 +205,9 @@ RUN python -m pip install --upgrade --no-cache-dir \
205205 idna \
206206 keras \
207207 tf_keras || true && \
208- (python -m pip uninstall -y mistune pyopenssl pygments python-dotenv jaraco jaraco-context jaraco.context jaraco.classes jaraco.functools || true)
208+ (python -m pip uninstall -y mistune pyopenssl pygments python-dotenv jaraco jaraco-context jaraco.context jaraco.classes jaraco.functools || true) && \
209+ conda clean --all -f -y && \
210+ rm -rf /opt/conda/pkgs/*
209211
210212RUN echo "Installed python packages:\n " && python -m pip list && \
211213 echo "Setuptools version:" && python -c "import setuptools; print(setuptools.__version__)"
You can’t perform that action at this time.
0 commit comments