Open antho1404 opened 6 years ago
I chose to not build and run the ts but directly run it. See the package.json
:
https://github.com/mesg-foundation/template-service-typescript/blob/367231573e41982a08b6861a07125522ab3979e1/template/package.json#L17
Do you think it's better to build the ts in the dockerfile
and then run it?
ts-node is ok for dev and testing, I’m not sure it’s really reliable enough for production. Usually typescript is to compile it and then you run the js version.
Dockerfile can copy the sources, build and run the compiled node script.
The following packages don't need to be installed for production and are only useful for development