Package org.openrewrite.docker
@NullMarked
@NonNullFields
package org.openrewrite.docker
-
ClassDescriptionAdds cleanup commands to apt-get RUN instructions to reduce image size.Adds standard OCI (Open Container Initiative) image labels to a Dockerfile.Adds a USER instruction to a Dockerfile to run as a non-root user.Combines consecutive RUN instructions into a single RUN instruction.Normalizes Docker Hub image names to their canonical short form.Replaces ADD instructions with COPY instructions where appropriate.Converts shell form ENTRYPOINT and CMD instructions to exec form (JSON array).