Order of --entrypoint
in example appears incorrect
#31
Labels
documentation
Improvements or additions to documentation
After much frustration, I just discovered that the following command in the readme does not quite work:
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 myfunction:latest --entrypoint /aws-lambda/aws-lambda-rie <image entrypoint> <(optional) image command>
On Docker version 20.10.5, build 55c4c88 for Mac (apple silicon),
docker run
appears to completely ignore the--entrypoint
argument unless it is written before the image name.Here is what ended up working for me:
Where
func.handler
refers to a filefunc.py
that contains:If you agree, please update the readme. Thanks!
The text was updated successfully, but these errors were encountered: