Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Alpine linux support? #85

Closed
dmifedorenko opened this issue May 9, 2022 · 2 comments
Closed

Alpine linux support? #85

dmifedorenko opened this issue May 9, 2022 · 2 comments
Assignees

Comments

@dmifedorenko
Copy link

Good day.

I am trying to use dart-sass-embedded in Docker image builded from official node:18-alpine image.

By default dart-sass-embedded dont work on alpine with error:

bash-5.1# ./dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded
bash: ./dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded: No such file or directory

I tried install apk add build-base gcompat or apk add libc6-compat but had same error:

bash-5.1# ./dist/lib/src/vendor/dart-sass-embedded/dart-sass-embedded
Segmentation fault

I tried to use gdb to find fault details but dart-sass-embedded has no debugging symbols.

On install download-compiler-for-end-user.js downloaded https://github.com/sass/dart-sass-embedded/releases/download/1.50.1/sass_embedded-1.50.1-linux-x64.tar.gz inside alphine Docker.

Is where any chase to exec dart sass on alpine?

BTW. It was very hard to find out real reason of problem. I spend some house in debugging. It will be grate if node sass-embedded module can show details if binary broken then is try to exec it.

@nex3 nex3 changed the title Alphine linux support? Alpine linux support? May 10, 2022
@jathak
Copy link
Member

jathak commented May 10, 2022

How did you install the embedded compiler on Alpine? Once installed, how are you running it? (it has to be run via a host like embedded-host-node).

@ntkme
Copy link
Contributor

ntkme commented May 11, 2022

Dart itself does not work with musl-libc, it only works with glibc. So dart-sass-embedded simply won't work in alpine. gcompat is not 100% compatible with glibc.

See dart-lang/sdk#40906

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants