From 9974312a9d5483858f15cce24e099f87c0b8e432 Mon Sep 17 00:00:00 2001 From: Anton Klimenko Date: Thu, 25 Feb 2021 08:56:47 +1100 Subject: [PATCH] Fix typo in adding RIE to the image example There's inconsistency in the example of how to add RIE to the image. Dockerfile `ADD` and `RUN` commands work with `/usr/bin/aws-lambda-rie`. But `entry.sh` script refers to `/usr/local/bin/aws-lambda-rie` that causes issues. Alternatively, Dockerfile `ADD` and `RUN` commands can be updated to work with `/usr/local/bin/aws-lambda-rie`. --- doc_source/go-image.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/go-image.md b/doc_source/go-image.md index 4b8e4564..85566819 100644 --- a/doc_source/go-image.md +++ b/doc_source/go-image.md @@ -131,7 +131,7 @@ The steps are the same as described for a `provided.al2` base image, with one ad ``` #!/bin/sh if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then - exec /usr/local/bin/aws-lambda-rie "$@" + exec /usr/bin/aws-lambda-rie "$@" else exec "$@" fi @@ -165,4 +165,4 @@ If you do not want to add the RIE to your image, you can test your image locally This command invokes the function running in the container image and returns a response\. -For more information about testing your image locally with the RIE, see [Testing Lambda container images locally](images-test.md)\. \ No newline at end of file +For more information about testing your image locally with the RIE, see [Testing Lambda container images locally](images-test.md)\.