mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 01:01:09 +02:00
oven/bun:1 doesn't ship with npm or pnpm, so the previous `RUN npm install -g pnpm@9.15.0` failed with `/bin/sh: 1: npm: not found` on the first Mac Mini build. Bun's own install command doesn't honor pnpm-workspace.yaml, so we can't use it as a drop-in. Switch the builder stage to node:20-alpine which has npm built in, install pnpm there, resolve the workspace graph, then COPY the finished tree into the bun runtime stage. The runtime stage stays on oven/bun:1 — bun handles pnpm's node_modules/.pnpm symlink farm natively, so the workspace layout works the same as it does on a developer machine. Tested locally: `docker compose -f docker-compose.macmini.yml build mana-api` now succeeds through the install stage. The runtime stage is unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| drizzle/research | ||
| src | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| package.json | ||
| tsconfig.json | ||