Dockerfile Code Formatter

Formats Dockerfiles.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint config add dockerfile

This will update your config file to have an entry for the plugin. Then optionally specify a "dockerfile" property to add configuration:

{
  "dockerfile": {
    // dockerfile config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/dockerfile-x.x.x.wasm"
  ]
}

Configuration

See Configuration

Playground

See Playground