1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
## Output
```text
Empty continuation line found in: RUN apk add gnupg curl
```
## Description
Support for empty continuation (`/`) lines have been deprecated and will
generate errors in future versions of the Dockerfile syntax.
Empty continuation lines are empty lines following a newline escape:
```dockerfile
FROM alpine
RUN apk add \
gnupg \
curl
```
Support for such empty lines is deprecated, and a future BuildKit release will
remove support for this syntax entirely, causing builds to break. To avoid
future errors, remove the empty lines, or add comments, since lines with
comments aren't considered empty.
## Examples
❌ Bad: empty continuation line between `EXPOSE` and 80.
```dockerfile
FROM alpine
EXPOSE \
80
```
✅ Good: comments do not count as empty lines.
```dockerfile
FROM alpine
EXPOSE \
# Port
80
```
|