“Distroless” Docker Image
✍ Last Updated : November 25, 2022
🚪 Prequisite Knowledge (Optional)
UploadDescribe InInitial ProgressKnowledge that reader need to know before reading this article
[Containerization / Docker](Containerization Docker 2e0ce73ff63b419d9e2782d79c4cc440.md)
❓ Key Question / Problem / Issue
Describe what question / Problem / Issue this knowledge should answer
- what is distroless docker image
- what benefit does it have ?
- how can i implement it ?
✅ Expected Output/Definition of Done
Define what information you really need and the definition of done
Quick Guideline on what distroless is and how to implement and any caveat on it’s implementation
🎁 Resulting Solution
Write writing results below
- Distroless can reduce headless server size by removing all unnecessary library of an operating system
- by removing most of it’s library distroless image are stripped of most functionality most os have including package manager.
- distroless shouldn’t be added additional capability as it defeats the purpose of it’s library stripping
- you can adjust you application to be able to run on distroless image. or find other distroless image that can suits your needs
Sample Unity Headless Implementation
it requires Unity Project to be build in il2cpp as distroless don’t have mono nor other .net library or maybe you could find distroless that have c# library left in it.