summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2019-03-19 09:55:08 +0100
committerCorentin LABBE <clabbe@baylibre.com>2019-03-19 09:55:08 +0100
commita2ca551b15f506fa418f63cf9002524ab4937f40 (patch)
treedf77d16ab559f0371ce99dc5fe91de32ef211ed0
parent2ef40504a0d5dac643b643271f21a6a07adb3e8e (diff)
lava-xxx-base: do not install recommended packages
For limiting size of docker images, do not install recommended packages
-rw-r--r--lava-master-base/Dockerfile2
-rw-r--r--lava-slave-base/Dockerfile2
2 files changed, 4 insertions, 0 deletions
diff --git a/lava-master-base/Dockerfile b/lava-master-base/Dockerfile
index fc7471a..ee7d47f 100644
--- a/lava-master-base/Dockerfile
+++ b/lava-master-base/Dockerfile
@@ -12,6 +12,8 @@ RUN echo 'lava-server lava-server/instance-name string lava-docker-instance' |
&& echo 'locales locales/locales_to_be_generated multiselect C.UTF-8 UTF-8, en_US.UTF-8 UTF-8 ' | debconf-set-selections \
&& echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections
+RUN echo "APT::Install-Recommends false;" > /etc/apt/apt.conf.d/01norecommands
+
# e2fsprogs is for libguestfs
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
locales \
diff --git a/lava-slave-base/Dockerfile b/lava-slave-base/Dockerfile
index 5bca9b6..d7852a7 100644
--- a/lava-slave-base/Dockerfile
+++ b/lava-slave-base/Dockerfile
@@ -1,5 +1,7 @@
FROM bitnami/minideb:stretch
+RUN echo "APT::Install-Recommends false;" > /etc/apt/apt.conf.d/01norecommands
+
RUN apt-get update
# e2fsprogs is for libguestfs