File tree Expand file tree Collapse file tree 3 files changed +4
-18
lines changed Expand file tree Collapse file tree 3 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM amazonlinux:2-with-sources
22
33WORKDIR /build
44
5- RUN curl --silent --location https://rpm.nodesource.com/setup_16 .x | bash -
5+ RUN curl --silent --location https://rpm.nodesource.com/setup_18 .x | bash -
66
77RUN yum -y install nodejs
88
Original file line number Diff line number Diff line change @@ -22,21 +22,7 @@ A pre-built layer zip file is available on the [Releases page](https://github.co
2222 git clone git@github.com:bubblydoo/lambda-layer-sharp.git
2323 cd lambda-layer-sharp/
2424 ```
25- 1. Install dependencies:
26- ` ` ` sh
27- docker run -v " $PWD " :/var/task lambci/lambda:build-nodejs12.x npm --no-optional --no-audit --progress=false install
28- ` ` `
29- 1. Build the layer:
30- ` ` ` sh
31- docker run -v " $PWD " :/var/task lambci/lambda:build-nodejs12.x node ./node_modules/webpack/bin/webpack.js
32- ` ` `
33- 1. Perform a smoke-test:
34- ` ` ` sh
35- docker run -w /var/task/dist/nodejs -v " $PWD " :/var/task lambci/lambda:build-nodejs12.x node -e " console.log(require('sharp'))"
36- ` ` `
37- 1. Import created layer into your AWS account:
38- ` ` ` sh
39- 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
25+ 1. Build a multi-architecture Docker image:
4026 ```
4127
4228# # Auto-publish
Original file line number Diff line number Diff line change 1313 "sharp" : " latest"
1414 },
1515 "engines" : {
16- "node" : " >=12.14 .0"
16+ "node" : " >=18.0 .0"
1717 },
1818 "volta" : {
19- "node" : " 16.16 .0"
19+ "node" : " 18.17 .0"
2020 }
2121}
You can’t perform that action at this time.
0 commit comments