Docker Concepts

Build cache

A builder can reuse results when its operation and relevant inputs match. A cache miss can invalidate dependent operations. Cache availability is not a correctness guarantee. Cache hits do not establish freshness or current execution.

Formal Syntax & Structure

docker syntaxdocker
Build cache

Working Example

Example Snippetdocker
FROM busybox:1.37WORKDIR /appCOPY message.txt .RUN tr a-z A-Z < message.txt > result.txtCMD ["cat", "/app/result.txt"]
Docker Reference