Combine consecutive RUN instructions

Apache 2.0

Combines consecutive RUN instructions into a single instruction to reduce image layers. Only shell form RUN instructions without flags are combined.

org.openrewrite.docker.CombineRunInstructions

Optional

The separator to use between combined commands. Defaults to ' && '.

mod run . --recipe=org.openrewrite.docker.CombineRunInstructions

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.