diff --git a/lib/fpm/fry/docker_file.rb b/lib/fpm/fry/docker_file.rb index 9c9595f..cfd8875 100644 --- a/lib/fpm/fry/docker_file.rb +++ b/lib/fpm/fry/docker_file.rb @@ -141,7 +141,7 @@ def dockerfile update = 'apt-get update && ' end df[:dependencies] << "ARG DEBIAN_FRONTEND=noninteractive" - df[:dependencies] << "RUN #{update}apt-get install --yes #{Shellwords.join(build_dependencies)}" + df[:dependencies] << "RUN #{update}apt-get install --no-install-recommends --yes #{Shellwords.join(build_dependencies)}" when 'redhat' df[:dependencies] << "RUN yum -y install #{Shellwords.join(build_dependencies)}" else diff --git a/spec/docker_file_spec.rb b/spec/docker_file_spec.rb index 326c21e..22dd6cd 100644 --- a/spec/docker_file_spec.rb +++ b/spec/docker_file_spec.rb @@ -97,7 +97,7 @@ def self.included(base) FROM WORKDIR /tmp/build ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get install --yes arg blub foo +RUN apt-get install --no-install-recommends --yes arg blub foo COPY .build.sh /tmp/build/ CMD /tmp/build/.build.sh SHELL @@ -152,7 +152,7 @@ def self.included(base) FROM WORKDIR /tmp/build ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get install --yes D a b e\\=1.0.0 +RUN apt-get install --no-install-recommends --yes D a b e\\=1.0.0 COPY .build.sh /tmp/build/ CMD /tmp/build/.build.sh SHELL @@ -177,7 +177,7 @@ def self.included(base) FROM WORKDIR /tmp/build ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get install --yes a +RUN apt-get install --no-install-recommends --yes a COPY .build.sh /tmp/build/ CMD /tmp/build/.build.sh SHELL @@ -240,7 +240,7 @@ def self.included(base) WORKDIR /tmp/build probe a ARG DEBIAN_FRONTEND=noninteractive -RUN apt-get install --yes a +RUN apt-get install --no-install-recommends --yes a probe b COPY .build.sh /tmp/build/ CMD /tmp/build/.build.sh