Not sure I would run it in production with ts-node. Might add unnecessary overhead and impact performance. IMO, ts-node should be a devDependency.
ts-node is for development. we need to take a build using tsc -p . and deploy it to production.
tsc -p .
Ah yes. Just noticed you are running with pm2 in your Dockerfile.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.