The @xenova/transformers package unconditionally imports both onnxruntime-node and onnxruntime-web at module load time. This causes immediate failure on Alpine Linux (musl libc) because onnxruntime-node requires glibc. Solution: Created alpine:setup script that replaces onnxruntime-node with a stub module after npm install. The transformers library will automatically fall back to onnxruntime-web (WASM backend). Usage on Alpine: npm install npm run alpine:setup npm run build npm run index:all 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| alpine-setup.sh | ||
| get-api-details.ts | ||
| index-api.ts | ||
| index-docs.ts | ||
| index-source.ts | ||
| search-handmenu-api.ts | ||
| search-handmenu.ts | ||
| test-api-indexing.ts | ||
| test-api-search.ts | ||
| test-parser.ts | ||
| test-search.ts | ||
| test-source-indexing.ts | ||
| test-source-search.ts | ||