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:
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"29539": {
|
||||
"id": 29539,
|
||||
"files": [
|
||||
"static/chunks/0ckcqe5on274m.js",
|
||||
"static/chunks/04uib0xi8_zof.js",
|
||||
"static/chunks/0e.~6vil2~4uy.js"
|
||||
]
|
||||
},
|
||||
"39184": {
|
||||
"id": 39184,
|
||||
"files": [
|
||||
"static/chunks/15p8tu-h65hwr.js",
|
||||
"static/chunks/0-kxqnmnjtk7l.js",
|
||||
"static/chunks/04uib0xi8_zof.js",
|
||||
"static/chunks/0e.~6vil2~4uy.js"
|
||||
]
|
||||
},
|
||||
"55819": {
|
||||
"id": 55819,
|
||||
"files": [
|
||||
"static/chunks/0yqyiard9rg2e.js",
|
||||
"static/chunks/0d09zs~9jbu5_.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user