mirror of
https://github.com/moby/buildkit.git
synced 2026-08-12 12:15:16 +00:00
913 B
913 B
title, description, aliases
| title | description | aliases | |
|---|---|---|---|
| ConsistentInstructionCasing | All commands within the Dockerfile should use the same casing (either upper or lower) |
|
Output
Command 'EntryPoint' should be consistently cased
Description
Instruction keywords should use consistent casing (all lowercase or all
uppercase). Using a case that mixes uppercase and lowercase, such as
PascalCase or snakeCase, letters result in poor readability.
Examples
❌ Bad: don't mix uppercase and lowercase.
From alpine
Run echo hello > /greeting.txt
EntRYpOiNT ["cat", "/greeting.txt"]
✅ Good: all uppercase.
FROM alpine
RUN echo hello > /greeting.txt
ENTRYPOINT ["cat", "/greeting.txt"]
✅ Good: all lowercase.
from alpine
run echo hello > /greeting.txt
entrypoint ["cat", "/greeting.txt"]