dockerfmt

Format and parse Dockerfiles with modern syntax support

brewmacoslinux
Try with needOr install directly
Source

About

Dockerfile format and parser. a modern dockfmt

Commands

dockerfmt

Examples

Format a Dockerfile in place$ dockerfmt -w Dockerfile
Format and output to stdout without modifying$ dockerfmt Dockerfile
Format all Dockerfiles in a directory$ dockerfmt -w ./docker/