-
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
Error loading shared libraries on alpine because of prebuilt(?) #1140
Comments
That's correct, Alpine doesn't use The real issue here is that |
Bless. I appreciate the effort being made. As a general side-note, and reason why I posted this here and not over at the prebuilt-repo, shouldn't |
It should not try to use prebuilt with that argument, no. Did you install it like this?
It worked for me. In NPM that argument doesn't work if it goes before the package name. |
Not really? As you can see above I am using a simple Like COPY package.json yarn.lock ./
# Install dependencies
RUN apk add --update \
&& apk add --no-cache ffmpeg opus pixman cairo pango giflib ca-certificates \
&& apk add --no-cache --virtual .build-deps git curl build-base jpeg-dev pixman-dev \
cairo-dev pango-dev pangomm-dev libjpeg-turbo-dev giflib-dev freetype-dev python g++ make \
\
# Install node.js dependencies
&& yarn install --build-from-source \
\
# Clean up build dependencies
&& apk del .build-deps
# Add project source
COPY . . I think it would go against the principle of having it defined in the yarn.lock file if I had to manually run Edit: |
I agree to what @iCrawl said since i encountere exactly the same issue and would love to have that fallback method to build itself so i could actuall use the newest beta version. |
No longer a problem in the next release thanks to #1156 |
This seems to still be an issue, unless I'm just doing something wrong. After My dockerfile has this:
And I still get the following error: I'm unsure what to do based on this thread, which seems to indicate it "should just work now" |
ugh, nevermind. I was missing the I was also missing |
@ryedin, your expectations were correct, but there was no release since that commit, so nothing actually changed. |
ah :) - makes total sense now. I just assumed since that was May 4th that a release had been made. My bad! ty EDIT: I just now went back to the OP and saw the version (and feel silly) 🥇 |
i have the same problem. can you send me your dockerfile to me? |
I recently decided to upgrade from the master build I was running off this repo which was around
2.0.0-alpha.9
to the latest2.0.0-alpha.12
just to get greeted with some nice errors on my alpine docker container.I am aware that I can stay at
alpha.9
but it would be in my best interest to keep my software updated, esp when I see commits like[...] fixed memory leak [...]
Issue or Feature
Any version above
2.0.0-alpha.9
throwsin Alpine Linux after installing and executing the code.
First thing I tried was adding
--build-from-source
toyarn install
but that obviously didn't work out as I expected it to.I assume what's happening here is that it tries to always use a prebuilt version regardless and that it correlates to this issue afterwards? node-gfx/node-canvas-prebuilt#31
Steps to Reproduce
Just run any Alpine Dockerfile (for reproduce cases
node:8-alpine
I guess) with those packages.It will work fine on
2.0.0-alpha.9
but not anything above that (since node-pre-gyp got added) basically.Is there anyway to go back to the old behavior that alpha.9 used? Since that works perfectly fine.
Your Environment
The text was updated successfully, but these errors were encountered: