fix(build): resolve failing build due to symlink issue in main app dockerfile#2650
Merged
waleedlatif1 merged 1 commit intostagingfrom Dec 31, 2025
Merged
fix(build): resolve failing build due to symlink issue in main app dockerfile#2650waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryApplies the same Changes:
Root cause: Bun 1.3+ defaults to isolated linker mode which stores packages in Consistency: This change mirrors the fix already applied to Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Docker as Docker Build
participant Deps as Deps Stage
participant Builder as Builder Stage
participant Runner as Runner Stage
Dev->>Docker: docker build with app.Dockerfile
Note over Docker,Deps: Dependencies Stage
Docker->>Deps: bun install --linker=hoisted
Note over Deps: Creates flat node_modules/<br/>instead of .bun/ symlinks
Deps->>Deps: cd node_modules/isolated-vm
Deps->>Deps: npx node-gyp rebuild
Note over Deps: Compiles isolated-vm<br/>native module for Node.js
Note over Docker,Builder: Builder Stage
Docker->>Builder: COPY node_modules from deps
Note over Builder: Successfully copies flat structure<br/>(no broken symlinks)
Builder->>Builder: bun install sharp --linker=hoisted
Builder->>Builder: bun run build
Note over Docker,Runner: Runner Stage
Docker->>Runner: COPY artifacts from builder
Docker->>Runner: COPY node_modules/isolated-vm from deps
Note over Runner: Direct path works<br/>(no .bun/ directory)
Runner->>Dev: Container starts successfully
|
Sg312
pushed a commit
that referenced
this pull request
Jan 3, 2026
waleedlatif1
added a commit
that referenced
this pull request
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Apply the same --linker=hoisted fix from #2637 to app.Dockerfile.
Bun 1.3+ defaults to isolated linker mode which stores packages in node_modules/.bun/ with symlinks. These symlinks break during Docker multi-stage COPY operations. Using --linker=hoisted restores the traditional flat node_modules layout.
Changes:
Type of Change
Testing
Build completes successfully; container starts normally.
Checklist