Choosing our build strategy
There are basically three types of build strategies that we can use with Buildah:
- Building a container image starting from an existing base image
- Building a container image starting from scratch
- Building a container image starting from a Dockerfile
We have already provided an example of the build strategy from an existing base image in the Meet Buildah, Podman's companion section. Since this strategy is pretty similar from a workflow point of view to building from scratch, we will focus our practical examples on the last one, which provides great flexibility to create a small footprint and secure images.
Before going through the various technical details in the next section, let's start exploring all these strategies at a high level.
Even though we can find a lot of prebuilt container images available on the most popular public container registries, sometimes we might not be able to find a particular configuration...