From 6dc28dc76680af8451ab9a02feaf73d62a64a067 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Mon, 19 Dec 2016 09:48:45 +0100 Subject: [PATCH] Clean apt archives and source directories in Dockerfile Signed-off-by: Michal Rostecki --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d99e145..08e79196 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,8 @@ RUN apt-get update && apt-get install -y \ python-minimal \ libglib2.0-dev \ libapparmor-dev \ - --no-install-recommends + --no-install-recommends \ + && apt-get clean # install bats RUN cd /tmp \ @@ -34,7 +35,8 @@ ENV CRIU_VERSION 1.7 RUN mkdir -p /usr/src/criu \ && curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \ && cd /usr/src/criu \ - && make install-criu + && make install-criu \ + && rm -rf /usr/src/criu # Install runc ENV RUNC_COMMIT cc29e3dded8e27ba8f65738f40d251c885030a28