fix(docker): COPY patches/ into deps stage so pnpm install can apply patchedDependencies #282
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
After #279 merged,
release.yml(run #710) failed in thedepsDocker stage with:Same failure surface in
pr.yml's Trivy (image) job (run #705 job 10) and would also bitebuild-feature-image.yml— all three workflows dodocker buildagainst the rootDockerfile.Root cause
Dockerfilelines 43-47 stage in just the manifests + lockfile before runningpnpm install --frozen-lockfile. #279 added apnpm.patchedDependenciesentry pointing atpatches/@react-native__gradle-plugin@0.85.3.patch. The Dockerfile doesn't COPY thepatches/directory before the install step, so pnpm can't find the patch file and bails. The dev-loop install + the host CI install both worked because they run with the full tree present.Fix
Add
COPY patches/ patches/to the deps stage beforepnpm install. One line, no other changes needed. Thepatches/directory is small (one file today) and changes infrequently, so layer-cache busting on patch edits is fine.Acceptance
release.ymlbuild step succeeds against the patched lockfile.pr.ymlTrivy (image) job builds the image successfully.build-feature-image.ymlbuilds successfully.Out of scope
Reorganising the Dockerfile to share the install step with the host CI install — that's a separate refactor (and folds into the broader "share android setup steps" follow-up #280).