The previous Dockerfile copied apps/embedder/node_modules straight from the deps stage, but with pnpm's default isolated layout that directory is a farm of relative symlinks pointing into the root .pnpm store. With the root node_modules absent in the runtime image, every dependency resolution failed (fastify, @xenova/transformers, ...). pnpm deploy --prod writes a portable directory with flat node_modules that resolves cleanly from a fresh WORKDIR. The `files` field on the embedder package opts dist/ into the deployed output (the workspace .gitignore would otherwise exclude it). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
23 lines
508 B
JSON
23 lines
508 B
JSON
{
|
|
"name": "@shared-memory/embedder",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"files": ["dist", "package.json"],
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc --noEmit",
|
|
"start": "node --enable-source-maps dist/index.js",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@xenova/transformers": "^2.17.2",
|
|
"fastify": "^5.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.2",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2"
|
|
}
|
|
}
|