Debian Codegraph @

buildkit/frontend/dockerfile/linter/docs/ConsistentInstructionCasing.md

raw
1 ## Output
2
3 ```text
4 Command 'EntryPoint' should be consistently cased
5 ```
6
7 ## Description
8
9 Instruction keywords should use consistent casing (all lowercase or all
10 uppercase). Using a case that mixes uppercase and lowercase, such as
11 `PascalCase` or `snakeCase`, letters result in poor readability.
12
13 ## Examples
14
15 ❌ Bad: don't mix uppercase and lowercase.
16
17 ```dockerfile
18 From alpine
19 Run echo hello > /greeting.txt
20 EntRYpOiNT ["cat", "/greeting.txt"]
21 ```
22
23 ✅ Good: all uppercase.
24
25 ```dockerfile
26 FROM alpine
27 RUN echo hello > /greeting.txt
28 ENTRYPOINT ["cat", "/greeting.txt"]
29 ```
30
31 ✅ Good: all lowercase.
32
33 ```dockerfile
34 from alpine
35 run echo hello > /greeting.txt
36 entrypoint ["cat", "/greeting.txt"]
37 ```