liveBook · Manning

Base image

As explained in Machine Learning Platform Engineering

A base image is the foundational Docker image whose filesystem and metadata are used as the starting point for another image.

A base image is the foundation for a container image: Docker starts with it, then adds application-specific layers and configuration. In a Dockerfile, the FROM instruction selects the base image. section 3.2.2

Choosing a suitable base image reduces manual dependency installation and version conflicts. In Kubeflow, the same base image can support notebooks, pipeline components, and deployment containers, keeping development close to production. section 7.1 section 8.1.4

Python application

A Dockerfile can begin with FROM python:3.10-slim-buster, then define /app as the working directory, install requirements, copy application files, and configure an entrypoint. section 3.2.2

Listing 8.12 Defining the KFP component for YOLO model validation
@dsl.component(
   base_image="ultralytics/ultralytics:8.0.194-cpu",
   packages_to_install=["minio", "tqdm"]
)
def validate_model(
   data_yaml: Input[Artifact], #1
   model: Input[Model], #2
   validation_dataset: Input[Dataset], #3
   metrics: Output[Metrics] #4
):
   # ...

Inspect a KFP validation component that uses the Ultralytics base image and adds only the remaining packages through packages_to_install. section 8.1.4

How Machine Learning Platform Engineering covers it

How deep it goes
Explains the FROM foundation and added layers, then demonstrates dependency reuse, but does not examine image internals beyond Dockerfile construction.
Examples
Uses python:3.10-slim-buster for FastAPI and ultralytics/ultralytics:8.0.194-cpu for YOLO validation.
What you can do after
Apply it via Dockerfiles and KFP components to assemble reproducible application and machine-learning execution environments.
How it connects
Connects Dockerfiles, container images, dependency management, Kubeflow notebooks, KFP components, and CI/CD.

Also explained in

Compare how 7 books explain base image →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.