Appearance
Fresh
ConsistentInstructionCasing
Back
ConsistentInstructionCasing
Copy as Markdown
Open MarkdownAsk Docs AIClaudeOpen in Claude
Table of contents
Output
text
Command 'EntryPoint' should be consistently casedDescription
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.
dockerfile
From alpine
Run echo hello > /greeting.txt
EntRYpOiNT ["cat", "/greeting.txt"]✅ Good: all uppercase.
dockerfile
FROM alpine
RUN echo hello > /greeting.txt
ENTRYPOINT ["cat", "/greeting.txt"]✅ Good: all lowercase.
dockerfile
from alpine
run echo hello > /greeting.txt
entrypoint ["cat", "/greeting.txt"]