Dockerfile Code Formatter

Formats Dockerfiles.

Install and Setup

In dprint configuration file:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .dockerfile file extensions are matched in an "includes" pattern.
  3. Add a "dockerfile" configuration property if desired.
{
  // omitted...
  "dockerfile": {
    // dockerfile config goes here
  },
  "includes": [
    "**/*.{dockerfile}"
  ],
  "plugins": [
    "https://plugins.dprint.dev/dockerfile-x.x.x.wasm"
  ]
}

Configuration

See Configuration

Playground

See Playground