-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work on node:12-alpine docker #1486
Comments
If you got a 404 after running If you were trying to install node-canvas, can you post the full output please? |
I got a 404 when I install node-canvas. Exit code: 1 |
Ah, that's because your system is using musl libc. See node-gfx/node-canvas-prebuilt#77 for info on that. Since a musl prebuild isn't available, you'll have to build from source (see https://github.com/Automattic/node-canvas#compiling). |
Helping some people: FROM node:12-alpine
RUN apk add --update --no-cache \
make \
g++ \
jpeg-dev \
cairo-dev \
giflib-dev \
pango-dev
CMD [ "node" ] inside container run It' works! Thank you! |
Thanks, you definitely helped. Helping++ with a python dependency and the yarn call inlined.
|
|
Dockerfile Example:
I got a not found 404.
Seems like a "musl" problem.
The text was updated successfully, but these errors were encountered: