Giter Club home page Giter Club logo

Comments (2)

dosubot avatar dosubot commented on July 3, 2024 3

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:

ENV SHARP_DIST_BASE_URL="https://your-alternative-url.com/"

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.

Details

Sources


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.

To continue the conversation, mention @dosu.

from quivr.

NewSNode avatar NewSNode commented on July 3, 2024

I have added some info to Dockerfile of the frontend program, and i exce success.

the info as:

RUN apk add --update --no-cache vips-dev fftw-dev build-base

image

from quivr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.