From 9f07cc9ab2c714ae05f1d219c92c0e05b824729f Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 9 May 2023 17:25:35 +0200 Subject: [PATCH] Remove CVE_UPDATES from dockerfiles Signed-off-by: Evan Lezar --- build/container/Dockerfile.centos | 7 ------- build/container/Dockerfile.ubuntu | 7 ------- build/container/Makefile | 1 - 3 files changed, 15 deletions(-) diff --git a/build/container/Dockerfile.centos b/build/container/Dockerfile.centos index 2914b2ba..4875084c 100644 --- a/build/container/Dockerfile.centos +++ b/build/container/Dockerfile.centos @@ -87,11 +87,4 @@ LABEL description="See summary" RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE -# Install / upgrade packages here that are required to resolve CVEs -ARG CVE_UPDATES -RUN if [ -n "${CVE_UPDATES}" ]; then \ - yum update -y ${CVE_UPDATES} && \ - rm -rf /var/cache/yum/*; \ - fi - ENTRYPOINT ["/work/nvidia-toolkit"] diff --git a/build/container/Dockerfile.ubuntu b/build/container/Dockerfile.ubuntu index 480767da..2efb95bf 100644 --- a/build/container/Dockerfile.ubuntu +++ b/build/container/Dockerfile.ubuntu @@ -95,11 +95,4 @@ LABEL description="See summary" RUN mkdir /licenses && mv /NGC-DL-CONTAINER-LICENSE /licenses/NGC-DL-CONTAINER-LICENSE -# Install / upgrade packages here that are required to resolve CVEs -ARG CVE_UPDATES -RUN if [ -n "${CVE_UPDATES}" ]; then \ - apt-get update && apt-get upgrade -y ${CVE_UPDATES} && \ - rm -rf /var/lib/apt/lists/*; \ - fi - ENTRYPOINT ["/work/nvidia-toolkit"] diff --git a/build/container/Makefile b/build/container/Makefile index 71d38329..6ec570fa 100644 --- a/build/container/Makefile +++ b/build/container/Makefile @@ -107,7 +107,6 @@ $(BUILD_TARGETS): build-%: $(ARTIFACTS_ROOT) --build-arg GIT_COMMIT_SHORT="$(GIT_COMMIT_SHORT)" \ --build-arg GIT_BRANCH="$(GIT_BRANCH)" \ --build-arg SOURCE_DATE_EPOCH="$(SOURCE_DATE_EPOCH)" \ - --build-arg CVE_UPDATES="$(CVE_UPDATES)" \ -f $(DOCKERFILE) \ $(CURDIR)