I want to deploy an app without having to bundle all the node_modules in the folder.
So instead of having this folder deployed:
- app.js
- node_modules (big folder)
To have something like:
- app.js
- binary_dependencies
In the binary_dependencies should only include the binaries that can't be included in the app.js file.
The reason is because yarn install will create a big layer (500MB) in docker and is slow to upload. I wanted to reduce that size.
node_modulesand runnpm installon server to download those dependencies.