How to build and package Node.js Lambda code along with dependencies in Docker: Medium
npm run package
And find function.zip
ready to be uploaded to AWS Lambda.
Example uses sharp package to show case, TypeScript and Webpack, however, it's not required and only used for illustration purposes.