onnxruntime-node ships glibc-linked native binaries; loading them on
node:20-alpine (musl libc) fails with:
Error loading shared library ld-linux-x86-64.so.2: No such file or
directory (needed by …/onnxruntime-node/bin/napi-v3/linux/x64/
libonnxruntime.so.1.14.0)
Using node:20-slim (Debian) provides glibc and the dynamic linker the
native bindings expect. Image is ~50 MB larger but actually works.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>