Ubuntu is really bad with this. Installing npm pulls adwaita icon theme, xorg and half the gnome desktop for some reason.
Thank you!
https://github.com/ViRb3/wgcf
just found this, seems promising!
Seems it does indeed work with root-level containers.
Thanks!