gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.08k stars 650 forks source link

Error in docker container (alpine) #696

Open xakep-sava opened 3 years ago

xakep-sava commented 3 years ago

Problem:

Hello! I get an error in the Docker container (alpine). Everything works fine without the container.

Error:

Segmentation fault (core dumped)

System information:

Ubuntu 20.04.2 LTS Docker 20.10.6 Node 14.16.0 Npm 6.14.11 Yarn 1.22.5 gpu.js 2.11.3

Dokerfile:

FROM node:14-alpine

RUN node -v && npm -v && yarn -v
RUN apk --no-cache add --virtual python make libxi-dev mesa mesa-dev g++ && rm -rf /var/cache/apk/*

....

Code:

const { GPU } = require('gpu.js');
const gpu = new GPU();