mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
fix(infra): include shared-types in mana-auth Dockerfile installer
mana-auth's package.json declares @mana/shared-types as a workspace
dependency, but the Dockerfile's install stage never copied its source
into the build context. pnpm then silently failed to create the
workspace symlink under node_modules, and bun hit ENOENT on every
import at runtime: "reading /app/services/mana-auth/node_modules/
@mana/shared-types".
The broken image sat undetected as long as the long-running container
didn't restart. Tonight's deploy recreated it and every mana-auth
container immediately crash-looped — taking mana-api and mana-web
down with it via depends_on.
Same class of bug as 70c62e758 (shared-logger).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
738eb1bb3d
commit
c1498c1099
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ COPY services/mana-auth/package.json ./services/mana-auth/
|
|||
COPY packages/shared-hono ./packages/shared-hono
|
||||
COPY packages/shared-ai ./packages/shared-ai
|
||||
COPY packages/shared-logger ./packages/shared-logger
|
||||
COPY packages/shared-types ./packages/shared-types
|
||||
|
||||
# Install only mana-auth and its workspace deps
|
||||
RUN pnpm install --filter @mana/auth... --no-frozen-lockfile --ignore-scripts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue