by throwaway4good · 5y ago · 0 comments
Scratch has no tooling or libraries or anything. It's empty. You typically add a binary into it and then just run that binary, but due to the lack of libraries, it just be statically compiled. So in answer to your question, you can run statically compiled C. You can't run Java due to the lack of JVM which I believe has its on set of filesystem dependencies, but I'm not a Java dev, so I'm not entirely sure.
Why aren't everyone just using scratch?
The naive solution using the golang image is nearly 1GB. Why carry this extra complexity around?
If you need some basic OS files, Google's distroless is another option.