-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Problem with Sharp and Alpine node v10 #1386
Comments
Hello, see building from source for more details, but with Alpine the summary is to install the build-base meta-package. As you've seen in #1379, the next version of sharp v0.21.0 will provide pre-built binaries for musl-based Linux. |
Hey Lovell, Thanks a lot for getting back so quickly! Any chance of a snippet and/or working example Dockerfile for us Docker newbies? It seems to me, from searching around old Github issues, that this is a fairly common occurrence. If adding the snippet from the docs is not enough to make it work, a more detailed explanation of how to do it would be a great addition to the docs, preventing more question-issues like this one. Being somewhat new to Docker, I'm honestly unsure what to do with the links provided. 🙈 |
If you're new to Docker then I highly recommend you first get to grips with a far simpler |
I'd like to, but my hosting provider, Zeit Now, enforces an image limit of 100mb for deployments. I managed to make it work in the meantime, however, with a little inspiration from other Github issues, and this comment in particular. In short, I had to:
I still think it'd be great if the readme part for the Alpine installation would be a tad more thorough/explicit, if nothing else, to save your time answering this question over and over going forward :-) As a reference for others, my full Dockerfile now looks like this:
|
A multistage #1379 should make things a lot easier for Alpine-based installations. |
Including a thorny issue around the sharp image manipulation tool lovell/sharp#1386
Hey,
First of all, thanks for a great lib!
I'm having issues using it with Docker and an Alpine build, though. I've read that vips needs to be added explicitly, but I can't seem to get it to work.
My Dockerfile
Running
build
fails with the output:What am I doing wrong?
The text was updated successfully, but these errors were encountered: