ENV key=value should be used instead of the legacy ENV key value format.
| Property | Value |
|---|---|
| Severity | Warning |
| Category | Style |
| Default | Enabled |
| Auto-fix | Yes (--fix) |
Description
The correct format for declaring environment variables and build arguments in a Dockerfile isENV key=value and ARG key=value, where the variable name and
value are separated by an equals sign. Historically, Dockerfiles have also
supported a space separator. This legacy format is deprecated.