I haven't tried but I don't see why not - using Windows Containers.
It wouldn't be generic though and likely not very efficient - you'd basically have to build your container structure out exactly as required.
The question is - where and how would you actually host it?
+++ Rick ---
I think one advantage would be on cloud deployment where I don't need to fire a VM nor manage a server, I could just package them in a container. Less cost in resources. Just a wish list I guess 😃
Well my question is: where do you cloud deploy a Windows Container for a reasonable price? Not many places do Windows Containers and they are mostly meant for Enterprise installations running in-house on dedicated hosting only servers (or Hyper-V servers).
Even Linux containers aren't economical today - often times containers are more expensive that PAAS Web Sites and sometimes even more than VMs.
If you want something repeatable for a Web Connection install maybe a canned VM might be better - you can create a VHD and then deploy that to any number of providers.
Or better yet have a build script that configures a VM completely. These days I can have a deployed Web Connection site up and running from post server install to running site in less than 30 minutes as it's possible to automate most of the setup now for Web Connection. You might want to check out this article:
Deploying and Configuring a Web Connection Application
+++ Rick ---