⚠️ Site communautaire non officiel — Cette documentation est une traduction française indépendante et n'est ni affiliée ni approuvée par Docker, Inc. Consultez le site officiel sur docs.docker.com.

StageNameCasing

Table des matières

Output

Stage name 'BuilderBase' should be lowercase

Description

To help distinguish Dockerfile instruction keywords from identifiers, this rule forces names of stages in a multi-stage Dockerfile to be all lowercase.

Examples

❌ Bad: mixing uppercase and lowercase characters in the stage name.

FROM alpine AS BuilderBase

✅ Good: stage name is all in lowercase.

FROM alpine AS builder-base