3 ms·
Huh? To run a node application, you need node installed on the container, as well as the JS files. Is that a big deal?
by LAC-Tech 4y ago
Huh? To run a node application, you need node installed on the container, as well as the JS files. Is that a big deal?
- eatonphil 4y agoYou don't even need that: https://github.com/vercel/pkg https://github.com/vercel/pkg. I think there are equivalents in the Python ecosystem.
- GOATS- 4y agoI have used PyInstaller for this before, which has the major caveat of it not being a cross-platform solution. You can only build binaries for the platform you're currently on. However, you can work around this by configuring GitHub Actions to build binaries for you for Windows, macOS (x86) and Linux.
- eddsh1994 4y agoYes, because now I need to install node, probably run npm install, etc…
- LAC-Tech 4y agothere's no npm install and there's no etc. All the files needed to run a node application are in node_modules. If node is on the container, you can just rsync the scripts. I think you're comparing distributing stand alone binaries, vs distributing the source code for a node app, and then installing its dependencies, and maybe doing some transpiling. That's not a fair comparison.