From b60f2c09427e22bcc306b6338ba18f50cd25edcc Mon Sep 17 00:00:00 2001 From: Pete MacKinnon Date: Wed, 1 Feb 2023 15:39:46 +0000 Subject: [PATCH] Clean up use of find/delete for CVE --- docker/Dockerfile | 2 +- models/mlflow/docker/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 81d44a3dd8..7ee6282bc9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -158,7 +158,7 @@ COPY "./scripts" "./scripts" COPY ["*.md", "LICENSE", "./"] # remedy for CVE-2015-20107 -RUN find / -name '*mailcap*.*py*' | xargs rm +RUN find / -name '*mailcap*.*py*' -delete # Use morpheus by default CMD [ "morpheus" ] diff --git a/models/mlflow/docker/Dockerfile b/models/mlflow/docker/Dockerfile index e5f901e813..8a8b1f124a 100644 --- a/models/mlflow/docker/Dockerfile +++ b/models/mlflow/docker/Dockerfile @@ -33,7 +33,7 @@ RUN sed -i 's/conda activate base/conda activate mlflow/g' ~/.bashrc SHELL ["/opt/conda/bin/conda", "run", "-n", "mlflow", "/bin/bash", "-c"] ARG TRITON_DIR=/mlflow/triton-inference-server -ARG TRITON_VER=r22.10 +ARG TRITON_VER=r23.01 RUN mkdir ${TRITON_DIR} && \ cd ${TRITON_DIR} && \ @@ -46,7 +46,7 @@ RUN ln -sf ${TRITON_DIR}/server/deploy/mlflow-triton-plugin/scripts/publish_mode mkdir /mlflow/artifacts # remedy for CVE-2015-20107 -RUN find / -name '*mailcap*.*py*' | xargs rm +RUN find / -name '*mailcap*.*py*' -delete # remedy for CVE-2022-42919 RUN find / -path '*multiprocessing/util.py' -exec sed -i 's/=\s*_platform_supports_abstract_sockets()/= False/g' {} +