fix(docker): COPY public/ into builder stage #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dockerfile-copy-public"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Derde Mac-side fix voor M16 fase 1 task 16 build-chain. Runner-stage doet
COPY --from=builder /app/public ./publicmaar builder enumeerdeCOPY-paths zonderpublic/mee te nemen.Resultaat tijdens server-Docker-build:
Root cause
public/.gitkeepIS getrackt in git (commitb2aa858) → dir bestaat in source treeCOPY app ./app,COPY lib ./lib, etc.) ipvCOPY . .— beste-practice voor cache-stability, maarpublic/zat niet in de lijst/app/public→ runner-stage COPY-from-builder kon niets vindenFix
Eén nieuwe COPY-regel in builder stage:
Test plan
Server-Claude retry na merge:
Verwacht: build slaagt door alle stages inclusief runner.
Context
Fix #3 van 3 voor task 16 build-chain:
mkdir -p prisma+prisma/.gitkeepSKIP_ENV_VALIDATIONinlib/env.tsCOPY public ./publicin builderAll three were originally caused by
.gitignore/ explicit-COPY interactions that only surface in fresh Docker build context, not local dev (wheremkdir -p-side-effects already had created the dirs).