Add apt-get cleanup
Apache 2.0Adds cleanup commands to apt-get RUN instructions to reduce Docker image size. By default, adds 'rm -rf /var/lib/apt/lists/*' to remove cached package lists.
org. openrewrite. docker. AddAptGetCleanupOptional
The cleanup command to append. Defaults to ' && rm -rf /var/lib/apt/lists/*'.
mod run . --recipe= org. openrewrite. docker. AddAptGetCleanupInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.