GitHub - reteps/dockerfmt: Dockerfile format and parser. a modern dockfmt.
dockerfmt
Dockerfile format and parser, and a modern version of dockfmt. Built on top of the internal buildkit parser.
Installation
Binaries are available from the releases page.
Usage
A updated version of the dockfmt. Uses the dockerfile parser from moby/buildkit and the shell formatter from mvdan/sh.
Usage:
dockerfmt [Dockerfile] [flags]
dockerfmt [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
version ...
Read more at github.com