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