| 1 |
## Output |
| 2 |
|
| 3 |
```text |
| 4 |
Stage name 'BuilderBase' should be lowercase |
| 5 |
``` |
| 6 |
|
| 7 |
## Description |
| 8 |
|
| 9 |
To help distinguish Dockerfile instruction keywords from identifiers, this rule |
| 10 |
forces names of stages in a multi-stage Dockerfile to be all lowercase. |
| 11 |
|
| 12 |
## Examples |
| 13 |
|
| 14 |
❌ Bad: mixing uppercase and lowercase characters in the stage name. |
| 15 |
|
| 16 |
```dockerfile |
| 17 |
FROM alpine AS BuilderBase |
| 18 |
``` |
| 19 |
|
| 20 |
✅ Good: stage name is all in lowercase. |
| 21 |
|
| 22 |
```dockerfile |
| 23 |
FROM alpine AS builder-base |
| 24 |
``` |