Re:The Node ecosystem still has tooling problems
by toomanybeersies on Sunday July 31, 2022 @02:30AM
(#32293688)
The NodeJS alpine base image is only 40 MB.
[ Parent
| on HN ]
Re:The Node ecosystem still has tooling problems
by lolive on Sunday July 31, 2022 @03:00AM
(#32293815)
Then you _npm install_ something, and BOOOM!
600MB !
Re:The Node ecosystem still has tooling problems
by Defman on Sunday July 31, 2022 @03:09AM
(#32293852)
You can use multi-stage builds [1] so your result image would be as small as possible by just copying the compiled JS from the build stage.
[1]: https://docs.docker.com/develop/develop-images/multistage-bu...
Re:The Node ecosystem still has tooling problems
by vbezhenar on Sunday July 31, 2022 @06:06AM
(#32294527)
You still need to download hundreds of megabytes of packages, unpack those into gigabyte of storage, "compile" it into a final form.
Also you need to keep those huge images, if you want to have any reasonable caching. Otherwise builds will take forever.
Re:The Node ecosystem still has tooling problems
by hinkley on Sunday July 31, 2022 @04:17AM
(#32294154)
Compiled JavaScript?