Dockerfile code formatter plugin for dprint.
Then in your project's directory with a dprint.json file, run:
dprint add dockerfile
# or install from npm
dprint add npm:@dprint/dockerfileSee https://dprint.dev/plugins/dockerfile/ for more information.