Commit Graph

5 Commits

Author SHA1 Message Date
2eab221eff 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.
2026-07-14 12:41:07 +05:30
a9f15dd25e fix: run container on port 80 to match Dokploy domain routing (fixes 502)
Dokploy domains were configured to route to internal port 80, but the
Node standalone server listened on 3000, causing Bad Gateway. Align
the container's PORT/EXPOSE with Dokploy's routing instead.
2026-07-14 11:24:54 +05:30
3917d58464 fix update build 2026-07-14 10:40:44 +05:30
d61aeac2bf update docker file 2026-07-13 18:00:03 +05:30
bfdcbbdd7c updates on the build file 2026-06-04 15:19:49 +05:30