NanosVM has a concept called Packages [1], ie prebuilt images that package a language runtime or application component eg Redis. It looks like they have packages for various scripting languages.
That should be possible if you use a web server like Apache as main application and then link the module that your scripting language requires. Not sure whether NanoVMs already support it though.
Hey, Unikraft has support for running the Python[0] and Ruby[1] runtimes as unikernels. We're about to release PHP too :) Watch this space!
[1]: https://github.com/unikraft/app-python3 [1]: https://github.com/unikraft/app-ruby
Re:The big idea around unikernels
by tarjei_huse on Friday December 03, 2021 @05:05AM
(#29428371)
Cool!
I know this would seem a bit like a contradiction to the ethos of unikernels, but it would give the benefits of unikernels (i.e. smaller attack surface) to a much larger audience.