github.com/awslabs/aws-la…
Thread below on when img2lambda is useful 👇
Write a Dockerfile to compile a custom runtime & install libraries, then take advantage of all the goodness of Docker build caching to get fast builds
docker build -t my-custom-runtime .
Dockerfile:
FROM lambci/lambda:provided
docker run --rm -v "$PWD":/var/task my-custom-runtime
Plus, you can use container image security tools & vulnerability scanners like clair-scanner & Sysdig with your runtime image
img2lambda -i my-custom-runtime:latest -r us-east-1
aws.amazon.com/blogs/apn/aws-…