Software and architecture patterns - Container Build Lens

Software and architecture patterns

CONTAINER_BUILD_SUSTAINABILITY_01: How do you design your containerized application in a way that reduces the use of the underlying resources?

When designing containerized application, you should keep your build manifests up-to-date and aligned with your application needs. A containerized application image starts from a Dockerfile. The Dockerfile includes all commands required to include the configuration and dependencies for the containerized application. If there are some dependencies that are no longer required, removing them from the Dockerfile can:

  • Reduce the time that it takes to build the container image. This affects host resource consumption by the build process.

  • Reduce the container image size and therefore reduce the time it takes for this image to be pulled to an instance. This affects host resources usage for running and storing the container images.