fix: inject linux-musl sharp binaries into build/ to fix 502 on Dokploy
build.sh runs npm run build on macOS, so only the host's sharp binary (darwin-arm64) got traced into the standalone output. The container runs node:20-alpine (Linux, musl libc), which cannot load that binary - the server crashed at runtime, causing a 502 even though the docker build itself succeeded. npm pack can fetch another platform's prebuilt sharp/libvips tarballs without an install-time OS check, so build.sh now pulls the linux-musl x64 and arm64 builds directly into build/node_modules and drops the now-unused host binary.
This commit is contained in:
17
build/.next/server/app/page.js
Normal file
17
build/.next/server/app/page.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var R=require("../chunks/ssr/[turbopack]_runtime.js")("server/app/page.js")
|
||||
R.c("server/chunks/ssr/[root-of-the-server]__0eood4z._.js")
|
||||
R.c("server/chunks/ssr/_0sw0r2k._.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_09jzzl8._.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nqzqrg.js")
|
||||
R.c("server/chunks/ssr/src_04lygsm._.js")
|
||||
R.c("server/chunks/ssr/[root-of-the-server]__07uj_3p._.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_0_t6nhm._.js")
|
||||
R.c("server/chunks/ssr/[root-of-the-server]__0ed.-2a._.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js")
|
||||
R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js")
|
||||
R.c("server/chunks/ssr/_next-internal_server_app_page_actions_10si78q.js")
|
||||
R.c("server/chunks/ssr/[root-of-the-server]__055c-aq._.js")
|
||||
R.m(83584)
|
||||
module.exports=R.m(83584).exports
|
||||
Reference in New Issue
Block a user