Back to Buildkit

ExposeProtoCasing

frontend/dockerfile/docs/rules/expose-proto-casing.md

0.29.0535 B
Original Source

Output

text
Defined protocol '80/TcP' in EXPOSE instruction should be lowercase

Description

Protocol names in the EXPOSE instruction should be specified in lowercase to maintain consistency and readability. This rule checks for protocols that are not in lowercase and reports them.

Examples

❌ Bad: protocol is not in lowercase.

dockerfile
FROM alpine
EXPOSE 80/TcP

✅ Good: protocol is in lowercase.

dockerfile
FROM alpine
EXPOSE 80/tcp