Ensure disabling recommended package in apt-get (--no-install-recommends)
Risk Level: informational
Platform: Docker
Spectral Rule ID: DOCKR008
REMEDIATION
Use --no-install-recommends flag in each use of apt-get install. If you want these flags to always be enabled put the following line in /etc/apt/apt.conf' file: APT::Get::Install-Recommends "false";
- RUN apt-get update && apt-get install --yes python3
+ RUN apt-get update && apt-get install --no-install-recommends --yes python3Read more:
Updated 7 months ago