ReservedStageName
目录
输出
'scratch' is reserved and should not be used as a stage name
描述
保留字不应用作多阶段构建中阶段的名称。 保留字为:
context
scratch
例子
❌ 坏:scratch
和context
是保留名称。
FROM alpine AS scratch
FROM alpine AS context
✅ Good:阶段名称builder
不保留。
FROM alpine AS builder