mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 06:48:51 +00:00
debian: Don't install recommended software
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) . Fixes: #427 Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
from docker.io/debian:@OS_VERSION@
|
from docker.io/debian:@OS_VERSION@
|
||||||
|
|
||||||
# RUN commands
|
# RUN commands
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get --no-install-recommends install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
binutils \
|
binutils \
|
||||||
|
@@ -11,7 +11,7 @@ from docker.io/ubuntu:@OS_VERSION@
|
|||||||
# Install any package need to create a rootfs (package manager, extra tools)
|
# Install any package need to create a rootfs (package manager, extra tools)
|
||||||
|
|
||||||
# RUN commands
|
# RUN commands
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get --no-install-recommends install -y \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
binutils \
|
binutils \
|
||||||
|
Reference in New Issue
Block a user