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:
S. Esmaeili
2026-10-24 14:41:31 +03:30
co-authored by Claude Haiku 5.5
parent ee8258556d
commit 10e453e4be
692 changed files with 303601 additions and 147 deletions
+63 -63
View File
@@ -4066,7 +4066,7 @@ function _expandFromEnv(value) {
const _inlineRuntimeConfig = {
"app": {
"baseURL": "/",
"buildId": "a8b8f23e-57aa-4497-aa31-c772dbae9639",
"buildId": "6f749362-63df-4cf4-be35-3f4142f84c9f",
"buildAssetsDir": "/_nuxt/",
"cdnURL": ""
},
@@ -4862,101 +4862,101 @@ const assets = {
"size": 285305,
"path": "../public/images/logo.png"
},
"/_nuxt/D0e0LUpa.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"794-cNNGOqTLOp2+IDNDEbTWshwORp0\"",
"mtime": "2026-10-24T09:59:44.867Z",
"size": 1940,
"path": "../public/_nuxt/D0e0LUpa.js"
},
"/_nuxt/BHOIQrRl.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1637-w7apJM7DBwq91AEy0Dz89/JwU4s\"",
"mtime": "2026-10-24T09:59:44.867Z",
"mtime": "2026-10-24T11:10:13.647Z",
"size": 5687,
"path": "../public/_nuxt/BHOIQrRl.js"
},
"/_nuxt/Dd1GE-gU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"21420-NSMMtehs6gAIMs2sZ84NfSEv/wU\"",
"mtime": "2026-10-24T09:59:44.868Z",
"size": 136224,
"path": "../public/_nuxt/Dd1GE-gU.js"
},
"/_nuxt/DlAPF8TW.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1e85-YNtOmEmkO1nMcpDM/ztRmg/rRLw\"",
"mtime": "2026-10-24T09:59:44.868Z",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 7813,
"path": "../public/_nuxt/DlAPF8TW.js"
},
"/_nuxt/D0e0LUpa.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"794-cNNGOqTLOp2+IDNDEbTWshwORp0\"",
"mtime": "2026-10-24T11:10:13.648Z",
"size": 1940,
"path": "../public/_nuxt/D0e0LUpa.js"
},
"/_nuxt/Dd1GE-gU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"21420-NSMMtehs6gAIMs2sZ84NfSEv/wU\"",
"mtime": "2026-10-24T11:10:13.649Z",
"size": 136224,
"path": "../public/_nuxt/Dd1GE-gU.js"
},
"/_nuxt/DOASWvjr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3827-3BvUfZznriOnNWFcpi6aALVMpOE\"",
"mtime": "2026-10-24T09:59:44.868Z",
"mtime": "2026-10-24T11:10:13.649Z",
"size": 14375,
"path": "../public/_nuxt/DOASWvjr.js"
},
"/_nuxt/entry.NJkjIEBJ.css": {
"type": "text/css; charset=utf-8",
"etag": "\"f954-gFKPvCM4WZHzb2tWqZEkEegmw5w\"",
"mtime": "2026-10-24T09:59:44.872Z",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 63828,
"path": "../public/_nuxt/entry.NJkjIEBJ.css"
},
"/_nuxt/r7-JdZhN.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"78c-4hmOEQGuRxrwCX/1v0DRIhjwpXE\"",
"mtime": "2026-10-24T09:59:44.872Z",
"size": 1932,
"path": "../public/_nuxt/r7-JdZhN.js"
},
"/_nuxt/VuesaxIcon.4cYnpGo8.css": {
"type": "text/css; charset=utf-8",
"etag": "\"dc-Uz1+XA31y3oabrHslWpIJp4Ls74\"",
"mtime": "2026-10-24T09:59:44.872Z",
"size": 220,
"path": "../public/_nuxt/VuesaxIcon.4cYnpGo8.css"
},
"/_nuxt/DoONAYG5.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3b62c-dc9OPIQbgdy0oXHYg6EoUgVy6yc\"",
"mtime": "2026-10-24T09:59:44.872Z",
"size": 243244,
"path": "../public/_nuxt/DoONAYG5.js"
},
"/_nuxt/builds/latest.json": {
"type": "application/json",
"etag": "\"47-Q166IaZkCaNTXHxWgZI+eeFM68U\"",
"mtime": "2026-10-24T09:59:49.866Z",
"size": 71,
"path": "../public/_nuxt/builds/latest.json"
},
"/_nuxt/builds/meta/a8b8f23e-57aa-4497-aa31-c772dbae9639.json": {
"type": "application/json",
"etag": "\"58-bKD7NKvUnazN2gxkAMUA2hMGhb8\"",
"mtime": "2026-10-24T09:59:49.866Z",
"size": 88,
"path": "../public/_nuxt/builds/meta/a8b8f23e-57aa-4497-aa31-c772dbae9639.json"
},
"/_nuxt/xGM79_uD.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5023-nhybJtf5A4+tqp5rdRjhnkK+QMY\"",
"mtime": "2026-10-24T09:59:44.872Z",
"size": 20515,
"path": "../public/_nuxt/xGM79_uD.js"
},
"/_nuxt/DlDWjZRl.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"37855-Z6e8Pe/n6IqFkcSEj31zIJ7FhuQ\"",
"mtime": "2026-10-24T09:59:44.867Z",
"mtime": "2026-10-24T11:10:13.647Z",
"size": 227413,
"path": "../public/_nuxt/DlDWjZRl.js"
},
"/_nuxt/VuesaxIcon.4cYnpGo8.css": {
"type": "text/css; charset=utf-8",
"etag": "\"dc-Uz1+XA31y3oabrHslWpIJp4Ls74\"",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 220,
"path": "../public/_nuxt/VuesaxIcon.4cYnpGo8.css"
},
"/_nuxt/r7-JdZhN.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"78c-4hmOEQGuRxrwCX/1v0DRIhjwpXE\"",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 1932,
"path": "../public/_nuxt/r7-JdZhN.js"
},
"/_nuxt/builds/latest.json": {
"type": "application/json",
"etag": "\"47-VuGCNPuAtxCQI3/VQh0vXpzB7Nw\"",
"mtime": "2026-10-24T11:10:19.632Z",
"size": 71,
"path": "../public/_nuxt/builds/latest.json"
},
"/_nuxt/builds/meta/6f749362-63df-4cf4-be35-3f4142f84c9f.json": {
"type": "application/json",
"etag": "\"58-x1aKWkHt7kpj2A/MgvGvWZjX3Pk\"",
"mtime": "2026-10-24T11:10:19.632Z",
"size": 88,
"path": "../public/_nuxt/builds/meta/6f749362-63df-4cf4-be35-3f4142f84c9f.json"
},
"/_nuxt/xGM79_uD.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5023-nhybJtf5A4+tqp5rdRjhnkK+QMY\"",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 20515,
"path": "../public/_nuxt/xGM79_uD.js"
},
"/_nuxt/DoONAYG5.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3b62c-dc9OPIQbgdy0oXHYg6EoUgVy6yc\"",
"mtime": "2026-10-24T11:10:13.650Z",
"size": 243244,
"path": "../public/_nuxt/DoONAYG5.js"
},
"/_nuxt/D6Ym2dQP.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1241f5-OG41EU7LABNWcdBigZe253LHLTw\"",
"mtime": "2026-10-24T09:59:44.868Z",
"mtime": "2026-10-24T11:10:13.648Z",
"size": 1196533,
"path": "../public/_nuxt/D6Ym2dQP.js"
}