Re:Node.js Compiler – Compiling your Node.js application int...
by tracker1 on Friday May 05, 2017 @08:01AM
(#14272732)
It really depends on version of node, and the modules used. I'm more inclined to want to see what can be done as a minimal electron... or seeing electron go the adobe air route, and have a shared (continuous updating) base, but that could prove problematic as binary modules (namely sqlite) are common.
https://hub.docker.com/r/library/node/tags/
Regular images are ~260MB and "slim" images are 85MB, but Alpine-based images are a paltry 18MB.
So it seems something in the Node.js compiler is ballooning up the size of the code, by a factor of about three. I wonder what.