Dockerfile: apt-get clean to save layer space 91/48891/1
authorRoss Brattain <ross.b.brattain@intel.com>
Fri, 1 Sep 2017 05:40:43 +0000 (22:40 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 14 Dec 2017 03:47:35 +0000 (03:47 +0000)
it seems like normally Dockerfiles do an apt-get clean
to remove apt cache and save space on docker layers

Change-Id: I2ac9d30daa917973c3ba76a50cda67d6ecb8c47a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 952c68f74c03facff84b987aa508040dd43ee30b)

docker/Dockerfile

index b48a550..a58bbbc 100644 (file)
@@ -24,7 +24,7 @@ ENV YARDSTICK_REPO_DIR ${REPOS_DIR}/yardstick
 ENV RELENG_REPO_DIR ${REPOS_DIR}/releng
 ENV STORPERF_REPO_DIR ${REPOS_DIR}/storperf
 
-RUN apt-get update && apt-get install -y git python-setuptools python-pip
+RUN apt-get update && apt-get install -y git python-setuptools python-pip && apt-get -y autoremove && apt-get clean
 RUN easy_install -U setuptools==30.0.0
 RUN pip install appdirs==1.4.0