Use exec form for ENTRYPOINT and CMD
Apache 2.0Converts shell form ENTRYPOINT and CMD instructions to exec form (JSON array). Exec form is preferred because it runs the command as PID 1, allowing it to receive Unix signals properly. Shell form wraps commands in /bin/sh -c which can cause signal handling issues.
org. openrewrite. docker. UseExecFormEntrypointOptional
convertEntrypointBoolean
Whether to convert ENTRYPOINT instructions. Defaults to true.
convertCmdBoolean
Whether to convert CMD instructions. Defaults to true.
mod run . --recipe= org. openrewrite. docker. UseExecFormEntrypointInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.