From 4dd60575f267654fbf0c3c2670bc31173e66ab4b Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Thu, 10 Mar 2016 10:24:19 +0000 Subject: [PATCH] Add missing 'yum clean all' in oraclelinux base This one line halfs the size of oraclelinux images, from over 1GB to just over 500MB, bringing them inline with centos. TrivialFix Change-Id: I9fd89aeeec56207791fc289db9880b43b17536f5 --- docker/base/Dockerfile.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 2b394b4005..b3e6042823 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -83,7 +83,8 @@ RUN yum install -y \ && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \ && yum clean all RUN yum-config-manager --enable ol7_optional_latest ol7_addons -RUN yum install -y yum-plugin-priorities +RUN yum install -y yum-plugin-priorities \ + && yum clean all {% endif %} {# Endif for base_distro oraclelinux #}