Docker Image for sharp
Installs sharp in an Alpine Linux container.
Within the Docker image, sharp
is pre-installed into the global node_modules
folder with all compile-time dependencies removed.
To link global sharp
to a local application $APP
, you will need to do some manual steps to link your npm package to the pre-compiled sharp
dependency without triggering recompilation, something like:
npm install --ignore-scripts
npm link sharp
rm -rf node_modules/$APP/node_modules/sharp
npm install
Just run docker build .
Licensed under MIT