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:
@@ -537,7 +537,7 @@
|
||||
color: var(--logico-light-text-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
`}})]})}])},95187,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return r.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var l in n)Object.defineProperty(i,l,{enumerable:!0,get:n[l]});let a=e.r(32120),o=e.r(92245),r=e.r(35326)},58234,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(22016),l=e.i(57688),a=e.i(95187);let o=(0,a.createServerReference)("40275f0c2193420edd4a0270f91d8fd12134ede38f",a.callServer,void 0,a.findSourceMapURL,"sendEmailAction");var r=e.i(2018);e.s(["default",0,function(){let e={"--grid-column-gap":"52px","--grid-row-gap":"18px",columnGap:"52px",rowGap:"18px"},[a,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)({fullName:"",email:"",subject:"",message:""}),[m,h]=(0,i.useState)("idle");(0,i.useEffect)(()=>{let e=()=>{window.scrollY>300?s(!0):s(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let p=e=>{let{name:t,value:i}=e.target;c(e=>({...e,[t]:i})),("success"===m||"error"===m)&&h("idle")},u=async e=>{e.preventDefault(),h("submitting");try{let e=await o(d);e.success?(h("success"),c({fullName:"",email:"",subject:"",message:""})):(console.error("Failed to submit contact form:",e.error),h("error"))}catch(e){console.error("Error submitting contact form:",e),h("error")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:`
|
||||
`}})]})}])},95187,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return r.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}};for(var l in n)Object.defineProperty(i,l,{enumerable:!0,get:n[l]});let a=e.r(32120),o=e.r(92245),r=e.r(35326)},58234,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(22016),l=e.i(57688),a=e.i(95187);let o=(0,a.createServerReference)("40178d6214c1b2a677a6ba1e043a26ad439d28ae9a",a.callServer,void 0,a.findSourceMapURL,"sendEmailAction");var r=e.i(2018);e.s(["default",0,function(){let e={"--grid-column-gap":"52px","--grid-row-gap":"18px",columnGap:"52px",rowGap:"18px"},[a,s]=(0,i.useState)(!1),[d,c]=(0,i.useState)({fullName:"",email:"",subject:"",message:""}),[m,h]=(0,i.useState)("idle");(0,i.useEffect)(()=>{let e=()=>{window.scrollY>300?s(!0):s(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]);let p=e=>{let{name:t,value:i}=e.target;c(e=>({...e,[t]:i})),("success"===m||"error"===m)&&h("idle")},u=async e=>{e.preventDefault(),h("submitting");try{let e=await o(d);e.success?(h("success"),c({fullName:"",email:"",subject:"",message:""})):(console.error("Failed to submit contact form:",e.error),h("error"))}catch(e){console.error("Error submitting contact form:",e),h("error")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:`
|
||||
.logico-form-field.dm-field-filled .logico-label-wrapper>label {
|
||||
font-size: 14px;
|
||||
top: -14px;
|
||||
Reference in New Issue
Block a user