Serverless error - Missing "handler" property in function


We are deploying lambda using the ECR image, but we are receiving the following error: I’m not sure why the ECR image deployment requires a lambda handler. Could someone please assist me with this problem?

Serverless Error ---------------------------------------

Missing “handler” property in function “message”. Please make sure you point to the correct lambda handler. For example: handler.hello. Please check the docs for more info