Minimal Docker Container with Mariner 2.0

Let’s build a minimal Docker container using Microsoft’s CBL-Mariner 2.0.

If you use the CBL-Mariner 2.0 images that Microsoft provides directly you’re bound to notice that the container image size is much larger than its Alpine counterpart. However, there are a number of things that can be done to optimize the usage of this image to get close to an Alpine-based Docker image.