This chapter guided us in terms of building container images. We learned about all the building steps and tips and tricks that will help us to ensure we have security in images. Building good and secure images is key for production and, as we learned, having good base images will help us build better application images. We will reuse many layers, so it is safer to ensure security from the bottom to the top. To ensure security, we just need to add the requisite software, expose the required processes, and avoid the root processes if they are not required.
We also learned how to store images and their meta-information using code versioning-like tags to ensure that the correct image is running in production.
Finally, we learned how to implement templates to create images for different environments or stages on CI/CD pipelines.
In the next chapter, we will learn how to run containers.