Skip to content

Use system libvips instead of pre-built one.#167

Open
mounirlamouri wants to merge 1 commit into
bluesky-social:mainfrom
mounirlamouri:libvips
Open

Use system libvips instead of pre-built one.#167
mounirlamouri wants to merge 1 commit into
bluesky-social:mainfrom
mounirlamouri:libvips

Conversation

@mounirlamouri

Copy link
Copy Markdown

Installs vips-dev to the image so sharp can use it. The change also installs a few dependencies requires for sharp to build the C++ files required.

The version of alpine was upgraded from 18 to 19 because the minimum libvips required by sharp wasn't satisfied by alpine-18.

Finally, in addition to copying /apps, we are now also copying /lib and /usr/lib because libvips and some other dependencies are now needed. An alternative would be to list all the files needed but it would be tedious to maintain.

This change improves portability and security as pds is no longer depending on code built by a library but instead depends on the alpine package. An immediate benefit is that the alpine package doesn't use SSE4.2 instructions, allowing pds to run on older CPU like some Intel Atom processors.

Fixes #158

@axfelix

axfelix commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Hi! How would you feel about contributing this solution to https://github.com/bluesky-social/deploy-recipes instead? That way, we aren't adding a compile dependency to the official install script, but we can still document and support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pds implicitly requires sse4.2

2 participants