From 96c92550470bebde7ad209c209b36ca64bcae33a Mon Sep 17 00:00:00 2001 From: Marcel Bargull Date: Wed, 3 Jul 2019 20:28:19 +0200 Subject: [PATCH] Reduce size by nuking /var/cache/yum (also done in base images) --- linux-anvil-comp7/Dockerfile | 3 ++- linux-anvil-cuda/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/linux-anvil-comp7/Dockerfile b/linux-anvil-comp7/Dockerfile index 21d5a134..0f8a3ec6 100644 --- a/linux-anvil-comp7/Dockerfile +++ b/linux-anvil-comp7/Dockerfile @@ -24,7 +24,8 @@ RUN yum update -y && \ localedef -i en_US -f UTF-8 en_US.UTF-8 && \ : > /usr/lib/locale/locale-archive.tmpl ; \ fi && \ - yum clean all + yum clean all && \ + rm -rf /var/cache/yum/* # Run common commands COPY scripts/run_commands /opt/docker/bin/run_commands diff --git a/linux-anvil-cuda/Dockerfile b/linux-anvil-cuda/Dockerfile index d3f7b86e..8cca7657 100644 --- a/linux-anvil-cuda/Dockerfile +++ b/linux-anvil-cuda/Dockerfile @@ -36,7 +36,8 @@ RUN yum update -y && \ localedef -i en_US -f UTF-8 en_US.UTF-8 && \ : > /usr/lib/locale/locale-archive.tmpl ; \ fi && \ - yum clean all + yum clean all && \ + rm -rf /var/cache/yum/* # Run common commands COPY scripts/run_commands /opt/docker/bin/run_commands