Dockerfile RUN instructions that invoke apt-get install should disable installation of recommended packages to reduce the image attack surface. Avoiding unnecessary package bloat decreases maintenance burden and potential vulnerabilities.
This check looks at RUN commands (both shell/string form and exec/array form) that call apt-get with install and requires either the --no-install-recommends option or the APT configuration apt::install-recommends set to false. Resources where the install command does not include --no-install-recommends and does not set apt::install-recommends to false will be flagged.