I am trying to install libvips to analyse the uploads in a rails application. At first I tried adding a build command, but after following up the community discussions I created a docker file named “Dockerfile” in the root of the project with following content
RUN apt-get update && apt-get install libvips-dev && apt-get clean
However it is still not getting installed. Kindly guide me how to proceed ahead and install libvips package.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello! I believe the issue you’re running into is the yes/no prompt from apt-get.
To solve this, you need to add the -y (or --assume-yes) flag to apt-get install.
Here is the line above that installed libvips-dev when I tested it locally:
RUN apt-get update && apt-get install -y libvips-dev && apt-get clean
You might also run into a timezone prompt from debian. If this happens use the following:
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y libvips-dev && apt-get clean
Also be sure to add dockerfile_path: Dockerfile to your app spec to ensure that the dockerfile you provided will be used.
Best,
Greg
those RUN commands should be done using non-interactive mode by adding -y:
RUN apt-get update && apt-get install -y libvips-dev && apt-get clean
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.