DEV Community

Discussion on: Building a Production - Ready Node.js App with TypeScript and Docker

Collapse
 
obsessiveprogrammer profile image
Tom Bonanno

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.

Collapse
 
ganeshmani profile image
GaneshMani

ts-node is for development. we need to take a build using tsc -p . and deploy it to production.

Collapse
 
obsessiveprogrammer profile image
Tom Bonanno

Ah yes. Just noticed you are running with pm2 in your Dockerfile.