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,6 @@
|
||||
1:"$Sreact.fragment"
|
||||
3:I[97367,["/_next/static/chunks/0812b12auw1ih.js","/_next/static/chunks/0wybzq6mybxiw.js","/_next/static/chunks/04xui0pxt.et1.js","/_next/static/chunks/0d3shmwh5_nmn.js","/_next/static/chunks/0g-e9tnpen8jn.js"],"OutletBoundary"]
|
||||
4:"$Sreact.suspense"
|
||||
0:{"rsc":["$","$1","c",{"children":["$L2",null,["$","$L3",null,{"children":["$","$4",null,{"name":"Next.MetadataOutlet","children":"$@5"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"Erg3te-xsOHqlolgOFE_K"}
|
||||
5:null
|
||||
2:E{"digest":"NEXT_REDIRECT;replace;/doormile-wings;308;"}
|
||||
Reference in New Issue
Block a user