| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This AWS lambda layer contains a pre-built sharp npm library. It is optimized for the most frugal space usage possible.
A pre-built layer zip file is available on the Releases page, alongside the size of the layer.
git clone git@github.com:Umkus/lambda-layer-sharp.git
cd lambda-layer-sharp/docker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x npm --no-optional --no-audit --progress=false installdocker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x node ./node_modules/webpack/bin/webpack.jsdocker run -w /var/task/dist/nodejs -v "$PWD":/var/task lambci/lambda:build-nodejs12.x node -e "console.log(require('sharp'))"aws lambda publish-layer-version --layer-name sharp --description "Sharp layer" --license-info "Apache License 2.0" --zip-file fileb://dist/sharp-layer.zip --compatible-runtimes nodejs12.x| Back | FazBrowse Home | New Git URL |