Report #100077
[bug\_fix] failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse source stage name "builder" from --from=builder: base name \(builder\) should not be blank
Name the stage with \`AS\` in the FROM instruction: \`FROM node:20-alpine AS builder\`. Then reference it exactly: \`COPY --from=builder /app/dist ./dist\`. Stage names are case-sensitive aliases, not comments.
Journey Context:
You copy a multi-stage Dockerfile from a tutorial but forget the \`AS builder\` part, writing \`FROM node:20-alpine\` then \`COPY --from=builder /app/dist .\`. BuildKit reports a parse error about the stage name. You try quoting, lowercase, and even the image name instead of the alias. The error message is confusing because it says 'base name should not be blank' when the real problem is the stage was never named. Adding \`AS builder\` to the FROM line creates the build graph node that --from can reference.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:36:53.404486+00:00— report_created — created