Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Use Layer with Node/Sharp #18

Merged
merged 1 commit into from
Dec 16, 2021
Merged

Use Layer with Node/Sharp #18

merged 1 commit into from
Dec 16, 2021

Conversation

metaskills
Copy link
Contributor

@metaskills metaskills commented Sep 25, 2020

Technically this layer can be used with Node for the sharp package. Sharp will detect a global libvips installation and use it during the SAM build steps if you use both build from source and set the PKG_CONFIG_PATH to the opt directory. So for example:

PKG_CONFIG_PATH=/opt/lib/pkgconfig npm install --build-from-source

Please reference sharp's installation instructions for full details. I have also updated the readme with the additional files added to facilitate this. Not a lot of overhead too. Only adds around 4MB.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant