Currently it is really hard to debug issues if Datadog serverless-init is used and there is some typo or command that should be run does not exist or is not executable. Here is example dockerfile:
This is far from optimal DX and pretty hard to debug if pushed to the cloud. Would it be possible for serverless-init to check first if command from CMD exist and is executable? If not then exit with some meaningful error message?
Currently it is really hard to debug issues if Datadog serverless-init is used and there is some typo or command that should be run does not exist or is not executable. Here is example dockerfile:
CMD
contains a typo and when running this container there is no error message, container just exit with error code.This is far from optimal DX and pretty hard to debug if pushed to the cloud. Would it be possible for
serverless-init
to check first if command fromCMD
exist and is executable? If not then exit with some meaningful error message?Thank you.