From 9d22d7cc21b74068f924ef167bef9de37c215f0f Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Sat, 7 Mar 2020 03:50:44 +0530 Subject: [PATCH] optimization debian package manager tweaks By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages . By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install. This results in smaller downloads and installation of packages . Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends) . Signed-off-by: Pratik Raj --- ingestion/env/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ingestion/env/Dockerfile b/ingestion/env/Dockerfile index 9027074..8d94d7c 100644 --- a/ingestion/env/Dockerfile +++ b/ingestion/env/Dockerfile @@ -26,7 +26,7 @@ LABEL description="Streaming API build environment." RUN apt-get update && apt-get upgrade -y -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ apt-utils \ autoconf \ autoconf-archive \ @@ -80,7 +80,7 @@ RUN apt-get update && apt-get install -y \ RUN easy_install pip RUN add-apt-repository ppa:jonathonf/ffmpeg-3 -y -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y --no-install-recommends \ libav-tools \ libavdevice-dev \ libx264-dev \ @@ -93,7 +93,7 @@ RUN apt-get update && apt-get install -y \ ffmpeg \ && apt-get clean -RUN apt-get install -y \ +RUN apt-get install -y --no-install-recommends \ libgstreamer1.0-0 \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-good \