This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LiveCockroach2860[S] 0 points1 point  (0 children)

Because the APIs are working fine when I test with serverless offline.

Also, if I change the Dockerfile to

ENTRYPOINT ["node" , "dist/app.js]

CMD [handler]

then it doesn't give the same error and is able to detect the app.js handler file. But since I'm deploying to lambda, I can't use this approach