I'm building a web app with Firebase that involves video rendering. I currently have a node.js server running locally that processes rendering requests. I'm considering porting this to a Firebase cloud function, but it has a lot of dependencies like FFmpeg, Cairo, Pango, as well as a bunch of npm modules.
Does it make sense to build a function which installs these dependencies each time it runs? Is that even possible? Or does it make more sense to get a dedicated server on AWS or something so that I can manage the environment with more control?
Advice appreciated!
-Lance