Scratch linux container possible?

It’s possible but requires lots of moving parts. I essentially had to do the same for the chiselled containers, which are built on top of scratch. You need to pull in all the dependencies that the Swift runtime requires and compile it as a static executable