summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-31 22:40:43 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-12-14 03:47:35 +0000
commitf1ece4cc41b624136521bba6d04568a39a9b1100 (patch)
tree3a74b5cc55b5102d4c495775fc1e5d80a273bdf2
parent4f0b2293ce25d8311d352bc4f10708d6a1e00c79 (diff)
Dockerfile: apt-get clean to save layer space
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)
-rw-r--r--docker/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b48a550bf..a58bbbc7b 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -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