Is it possible to use nspawn for a single executable? My goal is just to isolate the process tree of the application, not portability.
Let's say you wrote an application in C, built for your target platform. Today I am able to run this as a systemd service by configuration via a systemd unit file. Is there a way to make a minimal nspawn "container" for my application? All the articles I've read indicate that nspawn requires debianbootstrap, which ends up being almost 300mb worth of files. If I don't care about portability, is there some other way to leverage the process tree isolation features of nspawn?