As you already know, Cloud Native Buildpacks (CNBs)
transform your application source code into OCI images
that can run on any cloud.
Each buildpack checks the source code and provides any relevant dependencies in the form of layers. Then, buildpack-provided layers are placed atop a runtime base image
to form the final application image.
A base image
is an OCI image
containing the base, or initial set of layers, for other images. It is helpful to distinguish between two distinct types of images, Build
and Runtime
images.
A build image
is an OCI image
that serves as the base image for the build
environment in which the CNB lifecycle
and buildpacks are executed.
A typical build image
might determine:
Typically, a build
image may include:
A runtime image
is an OCI image
that serves as the base image for the final application image.
A typical runtime image might determine:
A runtime
image may contain:
For more details on build
and runtime
images, you can check out the specification