Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/cli-v3/src/deploy/buildImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ ${buildArgs}
${buildEnvVars}

COPY --chown=bun:bun package.json ./
# Strip workspaces from package.json before bun install to avoid "Workspace not found" error
# Bun strictly validates workspaces exist, unlike npm/node which just warns
RUN node -e "const fs=require('fs');const p=JSON.parse(fs.readFileSync('package.json','utf8'));delete p.workspaces;fs.writeFileSync('package.json',JSON.stringify(p,null,2))"
RUN bun install --production --no-save

# Now copy all the files
Expand Down