build: ship pre-built API bundle; images copy output instead of installing
- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with Linux musl native packages for sharp and argon2 kept alongside - docker/api.Dockerfile copies that output; no pnpm install on the server - add dist/migrate.js (prisma migrate deploy equivalent, same _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime - pnpm-workspace: supportedArchitectures for linux/x64/musl - admin: apps/admin/.env.production sets VITE_SITE_URL for the production build - drop NPM_REGISTRY / SITE_URL build args from compose and .env.example - gitignore: anchor node_modules rules so pre-built node_modules are committed - README: describe the pre-built deploy flow Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 5.5
parent
ee8258556d
commit
10e453e4be
@@ -1 +1 @@
|
||||
{"id":"a8b8f23e-57aa-4497-aa31-c772dbae9639","timestamp":1792835930692}
|
||||
{"id":"6f749362-63df-4cf4-be35-3f4142f84c9f","timestamp":1792840187319}
|
||||
@@ -0,0 +1 @@
|
||||
{"id":"6f749362-63df-4cf4-be35-3f4142f84c9f","timestamp":1792840187319,"prerendered":[]}
|
||||
@@ -1 +0,0 @@
|
||||
{"id":"a8b8f23e-57aa-4497-aa31-c772dbae9639","timestamp":1792835930692,"prerendered":[]}
|
||||
Reference in New Issue
Block a user