Skip to content

fix(web): copy pnpm patches in Dockerfile - #47

Merged
jusso-dev merged 1 commit into
mainfrom
fix/web-docker-copy-patches
Jul 28, 2026
Merged

fix(web): copy pnpm patches in Dockerfile#47
jusso-dev merged 1 commit into
mainfrom
fix/web-docker-copy-patches

Conversation

@jusso-dev

@jusso-dev jusso-dev commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Docker web build failed with ENOENT .../patches/minimatch@3.1.5.patch during pnpm install.
  • Copy patches/ into the deps stage before install so patchedDependencies resolve.

Test plan

  • docker compose -p tawny build web on homelab after this change
  • Recreate tawny-web and hit public UI

Summary by CodeRabbit

  • Build Improvements
    • Included local patch files during web application builds, ensuring required dependency adjustments are applied consistently.

pnpm install fails in the image when patchedDependencies
reference patches/ but only package.json and prisma are copied.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e1d974e2-ff31-498f-bf19-6e9e169fbe69

📥 Commits

Reviewing files that changed from the base of the PR and between 7402505 and eb35864.

📒 Files selected for processing (1)
  • web/Dockerfile

📝 Walkthrough

Walkthrough

The web Dockerfile now copies the local patches directory into the dependencies stage, making it available during subsequent installation and build steps.

Changes

Docker build context

Layer / File(s) Summary
Copy patches into dependencies stage
web/Dockerfile
Adds COPY patches ./patches to make local patches available in the deps stage.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: copying pnpm patches into the web Dockerfile.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/web-docker-copy-patches

Comment @coderabbitai help to get the list of available commands.

@jusso-dev
jusso-dev merged commit 879e2f4 into main Jul 28, 2026
10 checks passed
@jusso-dev
jusso-dev deleted the fix/web-docker-copy-patches branch July 28, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant