You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error you're encountering with the sharp module during your Docker build is likely due to it failing to download the libvips library from GitHub's servers. This can happen because of network connectivity issues or a proxy blocking access to GitHub.
To work around this, you can specify an alternative URL for downloading libvips by setting the SHARP_DIST_BASE_URL environment variable in your Dockerfile. Here's an example of how to do it:
Replace "https://your-alternative-url.com/" with the URL of your alternative source for libvips.
Additionally, since you're using an Alpine Linux base image, you might need to install the vips-dev package to resolve any issues related to compiling the native dependencies required by sharp. Add this line to your Dockerfile before installing Node.js dependencies:
RUN apk add --update --no-cache vips-dev
This ensures the necessary libraries for sharp are available, potentially resolving the installation issues. For more detailed information on system dependencies for sharp, refer to the sharp installation guide.
If you continue to face issues or have any more questions, feel free to ask.
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
What happened?
when i exec docker compose up,same error comes, as log info.
what happened?
Relevant log output
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: