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

GaneshMani on September 28, 2019

In this article, we will see how to build a Node.js, TypeScript Application and deploy it to server with Docker. Building a Production - Ready Node... [Read Full]
markdown guide

Good article.

One small typo.

Running tsc init on empty directory will throw error TS6053: File 'init.ts' not found.

update the command to tsc --init

Check out the following stackover flow link.



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.


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


Great article, I was looking for some TypeScript and Docker content and this is pretty helpful. :D

code of conduct - report abuse