Skip to content

Dockerfile#

Server#

For more information about the LSP server, check dockerfile-language-server-nodejs.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETdockerfile-lsRET.

npm install -g dockerfile-language-server-nodejs

Debugger: Not available#

Available configurations#

lsp-dockerfile-deprecated-maintainer#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for the deprecated MAINTAINER instruction.


lsp-dockerfile-directive-casing#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for parser directive casing. Parser directives include escape and syntax.


lsp-dockerfile-empty-continuation-line#

Type: (choice (const ignore) (const warning) (const error))

Default: ignore

Controls the diagnostic severity for empty continuation lines.


lsp-dockerfile-format-ignore-multiline-instructions#

Type: boolean

Default: nil

Whether to ignore multiline instructions during formatting.


lsp-dockerfile-instruction-casing#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for instruction casing. Instructions include FROM, RUN, COPY, etc.


lsp-dockerfile-instruction-cmd-multiple#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for multiple CMD instructions. Only the last CMD instruction takes effect in a Dockerfile.


lsp-dockerfile-instruction-entrypoint-multiple#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for multiple ENTRYPOINT instructions. Only the last ENTRYPOINT instruction takes effect in a Dockerfile.


lsp-dockerfile-instruction-healthcheck-multiple#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for multiple HEALTHCHECK instructions. Only the last HEALTHCHECK instruction takes effect in a Dockerfile.


lsp-dockerfile-instruction-json-single-quotes#

Type: (choice (const ignore) (const warning) (const error))

Default: warning

Controls the diagnostic severity for JSON arrays using single quotes. JSON arrays in Dockerfile instructions should use double quotes.


lsp-dockerfile-language-server-command#

Type: (repeat :tag List of string values string)

Default: (docker-langserver --stdio)

The command that starts the docker language server.



Last update: January 4, 2026