minimal base image

A base image with as little inside as possible, such as Alpine, a slim variant or a distroless image, to shrink size and attack surface.

In more detail

Fewer packages means fewer vulnerabilities to patch and faster pulls. Distroless images contain only your app and its runtime, without even a shell, which makes debugging harder but attacks harder too. The special scratch image is completely empty and suits single static binaries.

Examples

gcr.io/distroless/python3-debian12:nonroot has Python, libc and certificates but no shell or package manager
FROM gcr.io/distroless/static-debian12

Related terms

Taught in

References

Certification courses