From cc9b2a8075eb69bada9aafc0e6765dbf7e455db1 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Thu, 12 Mar 2020 13:57:12 +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 --- .build-android.dockerfile | 2 +- .build-linux.dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.build-android.dockerfile b/.build-android.dockerfile index 420d7466..5e243f57 100644 --- a/.build-android.dockerfile +++ b/.build-android.dockerfile @@ -17,7 +17,7 @@ FROM ubuntu COPY . /root/vulkan_test_applications RUN apt-get update -qq && \ -apt-get install -qq -y git gcc g++ ninja-build python3 python3-pip cmake libxcb1-dev openjdk-8-jdk wget unzip && \ +apt-get --no-install-recommends install -qq -y git gcc g++ ninja-build python3 python3-pip cmake libxcb1-dev openjdk-8-jdk wget unzip && \ pip3 install pillow WORKDIR /root diff --git a/.build-linux.dockerfile b/.build-linux.dockerfile index f8ef572b..2a3a39e0 100644 --- a/.build-linux.dockerfile +++ b/.build-linux.dockerfile @@ -17,7 +17,7 @@ FROM ubuntu COPY . /root/vulkan_test_applications RUN apt-get update -qq && \ -apt-get install -qq -y git gcc g++ ninja-build python3 python3-pip cmake libxcb1-dev +apt-get --no-install-recommends install -qq -y git gcc g++ ninja-build python3 python3-pip cmake libxcb1-dev RUN pip3 install pillow