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.
SubscribeRelated
Minimal imageDocker Hardened ImageMulti-stage buildDocker ScoutRuntime dependencies