> ## Documentation Index
> Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# buildkit/NoEmptyContinuation

> Empty continuation lines are deprecated and will cause errors in future Dockerfile syntax versions.

Empty continuation lines are deprecated and will cause errors in future Dockerfile syntax versions.

| Property | Value |
| - | - |
| Severity | Error |
| Category | Correctness |
| Default | Enabled |
| Auto-fix | Yes (`--fix`) |

## Description

Support for empty continuation (`\`) lines has been deprecated and will
generate errors in future versions of the Dockerfile syntax. Empty continuation
lines are empty lines following a newline escape.

## Examples

Bad:

```dockerfile theme={null}
FROM alpine
EXPOSE \

80
```

Good:

```dockerfile theme={null}
FROM alpine
EXPOSE \
# Port
80
```

Bad:

```dockerfile theme={null}
FROM alpine
RUN apk add \

    gnupg \

    curl
```

Good (empty lines removed):

```dockerfile theme={null}
FROM alpine
RUN apk add \
    gnupg \
    curl
```

## Auto-fix

The fix removes empty continuation lines from multi-line commands.

## Reference

* [buildkit/NoEmptyContinuation](https://docs.docker.com/reference/build-checks/no-empty-continuation/)


## Related topics

- [BuildKit rules](/rules/buildkit/overview.md)
- [tally/labels/prefer-stable-order](/rules/tally/labels/prefer-stable-order.md)
- [tally/no-multiple-empty-lines](/rules/tally/no-multiple-empty-lines.md)
- [buildkit/InvalidDefaultArgInFrom](/rules/buildkit/InvalidDefaultArgInFrom.md)
- [buildkit/InvalidDefinitionDescription](/rules/buildkit/InvalidDefinitionDescription.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.