AWS and serverless now allows lambda functions to specify a custom docker image:
It would be great if we could specify the docker container for each function. The key use case is when the default environment for lambda functions doesn’t work. For example, if we need a higher version of nodejs, or custom software that is larger than the standard limits for lamba packages.