From 1ef0332cbe4e493aa07db1eee3d13192e3bf4a6b Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Wed, 9 Mar 2016 12:56:59 +0200 Subject: [PATCH] Modified Dockerfile to execute in a single "RUN" and remove "apt-mark showauto" - Decreases docker image size 400MB -> 180MB --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd3d9200..2491de76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,16 @@ FROM ubuntu:15.10 m4 \ build-essential \ git \ - yasm - RUN git clone --depth=1 git://github.com/ultravideo/kvazaar.git - RUN cd kvazaar; \ + yasm; \ + git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \ + cd kvazaar; \ ./autogen.sh; \ ./configure --disable-shared;\ - make + make;\ + apt-get remove --purge -y automake autoconf libtool m4 build-essential git yasm `apt-mark showauto`; \ + apt-get autoremove -y; \ + apt-get clean all; \ + rm -rf /var/lib/apt/lists/* COPY src/kvazaar / - RUN apt-get purge -y automake autoconf libtool m4 build-essential git yasm - RUN apt-get autoremove -y - RUN apt-get clean all - RUN rm -rf /var/lib/apt/lists/* ENTRYPOINT ["/kvazaar"] CMD ["--help"]