huggingface / huggingface/transformers.js

Segfault in `node:alpine-18` Docker Container

Open
#555 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
16.3k
Forks
1.2k
Avg merge
6d 2h
Merged PRs (30d)
6

Description

### System Info

`node:alpine-18 Docker Container`

### Environment/Platform

- [ ] Website/web-app
- [ ] Browser extension
- [X] Server-side (e.g., Node.js, Deno, Bun)
- [ ] Desktop app (e.g., Electron)
- [ ] Other (e.g., VSCode extension)

### Description

When importing `@xenova/transformers` within a `node:alpine-18` Docker Container, a `SIGSEGV` is thrown.

### Reproduction

1. create a file that imports `@xenova/transformers`

```js
import * as Transfomers from '@xenova/transfomers';
```

2. Create a dockerfile
```Dockerfile
FROM node:18-alpine

# ... build & run the javascript with node
# a SIGSEGV will occur.
```

# Other Notes

I'm not necessarily proposing that this gets fixed in `@xenova/transformers`, but I wanted to share that I fixed the issue by switching to debian and using `node:18-buster` instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.