Find exposed ports

Apache 2.0

Find all EXPOSE instructions in Dockerfiles and report the exposed ports.

org.openrewrite.docker.search.FindExposedPorts

Optional

A glob pattern to filter ports. For example, '80*' to find ports starting with 80. If not specified, all EXPOSE instructions are matched.

mod run . --recipe=org.openrewrite.docker.search.FindExposedPorts

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