I have a node.js application that I've developed for our custom Arm/Debian board, currently running on an SD card. For production, I will be deploying this on our board's eMMC. We've written a script to copy our OS/filesystem/device tree to the eMMC, so we can successfully boot and run our system - but it lacks node and any custom code. From the base OS, I currently manually build node and copy the necessary source files - so I could write the script for this.
But I am wondering if there is a way to automate the building of node and my application, so I can overcome the manual/script effort and time to set-up a production system? To reduce the time to building node and copying files (important if we have to mass produce), is it possible to copy/clone or tar/un-tar node and the associated app? Is there a best method for this type of problem?