I'm trying to Dockerise a NodeJS microservice but it seems to be silently bombing out when run. It's probably an incorrect path to the app.js but I can't get any error output to see what's happening. I'm trying to run it using:
Code:
CMD [ "node", "app.js" ]
Code:
CMD [ "DEBUG=express:* node", "app.js" ]
Gives
Error: Cannot find module '/home/node/app/DEBUG=express:* node'
I can get a debugger listening using --inspect but can't connect to it and that's for debugging running code anyway.
I've not been able to find anything that works in a Docker container, how do others do this?