Follow the documentation for installing the aws-lambda-rie
https://docs.aws.amazon.com/lambda/latest/dg/images-test.html
sudo docker build . -t test_aws
sudo docker run -v ~/.aws-lambda-rie:/aws-lambda -p 9700:8080 --entrypoint aws-lambda/aws-lambda-rie test_aws /usr/local/bin/python -m awslambdaric app.handler
curl -XPOST http://localhost:9700/2015-03-31/functions/function/invocations -d '{"task":"list_zodiac"}'
curl -XPOST http://localhost:9700/2015-03-31/functions/function/invocations -d '{"task":"get_horoscope","sign":"virgo","day":"tomorrow"}'