From e63497dda0b174ac1dc64dfcf8908838ba0b5450 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 21 Jul 2015 14:47:38 -0700 Subject: Remove PIP cache for Magnum We only install these pip files once so there is no need for a 50MB PIP cache stored in the image permanently. Change-Id: I75c8154c764db85b3115b4d28fc136855523df05 Partial-Bug: #1476840 --- docker/centos/source/magnum/magnum-base/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/centos/source/magnum/magnum-base/Dockerfile b/docker/centos/source/magnum/magnum-base/Dockerfile index 0962e08d2..f5d0fe55f 100644 --- a/docker/centos/source/magnum/magnum-base/Dockerfile +++ b/docker/centos/source/magnum/magnum-base/Dockerfile @@ -9,7 +9,8 @@ RUN cd /magnum \ && pip install -r requirements.txt \ && pip install /magnum \ && mkdir /etc/magnum /var/log/magnum \ - && cp -r /magnum/etc/* /etc/magnum/ + && cp -r /magnum/etc/* /etc/magnum/ \ + && rm -rf /root/.cache RUN mkdir -p /opt/kolla COPY config-magnum.sh /opt/kolla/config-magnum.sh -- cgit v1.2.3