-
-
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
How to use in docker environment? #2815
Comments
What is the target device, CPU, OS? Is this on ARMv7 or ARM64v8? I recommend using the latest version of an up-to-date base OS that matches the minimum glibc/musl requirements at https://sharp.pixelplumbing.com/install#prebuilt-binaries and then you don't need to worry about compiling anything. |
Hi @lovell, thanks for your reply. What do you mean by base OS? If I'm using a docker container, there's no OS involved, right? Sorry I'm a bit new to this 🙏 |
This comment has been minimized.
This comment has been minimized.
@edrichhans Please can you create a standalone repo with a complete Dockerfile that demonstrates what you're trying to achieve. EDIT: I just saw you're using |
I had the same situation, but it was solved. The testing version of debian, bullseye, contains glibc version 2.31. Note that before installing sharp, you need to run https://github.com/malt03/docker-node/tree/main/14/bullseye-slim @lovell |
@malt03 Are you using an ARM64 CPU? The libc (glibc, musl) requirements for the prebuilt binaries are listed at https://sharp.pixelplumbing.com/install#prebuilt-binaries |
Yes, I am using ARM64. However, I just checked and bullseye is scheduled to be released on August 14, 2021, and I think the official Node.js image will be released accordingly, so I felt there was no need to add it to the README or documentation. |
@edrichhans Closing due to inactivity but please feel free to reopen with the requested details if further help is required. |
My apologies for my ignorance, this is my first time setting this up in a docker environment.
When I tried to dockerize my application that used the sharp library, I encountered
ERR! sharp Use with glibc 2.24 requires manual installation of libvips >= 8.10.0
I found this issue which should solve the problem, but I am having trouble following this and understanding which script to use and how to install it. I tried running the cross-platform compatible build script in docker, but I'm getting something like
This is my dockerfile:
I appreciate any help. Thank you!
The text was updated successfully, but these errors were encountered: