Skip to content
masterclass Buddy

Docker · Concept

Distroless image

A distroless image is a minimal container image that includes an application and its runtime dependencies but omits most operating-system tools. This reduces the attack surface, image size, and startup time.

Last updated

Syntax

FROM <builder-image> AS build
# build the application
FROM <minimal-runtime-image>
COPY --from=build <runtime-files> <destination>
CMD ["<application>"]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Minimal image
  • Docker Hardened Image
  • Multi-stage build
  • Docker Scout
  • Runtime dependencies

Source: Minimal or distroless images. Checked 2026-11-03.