All tools / Containers

Dockerfile explainer

Lint a Dockerfile and explain each instruction, including floating tags, root, ADD versus COPY, and apt layers.

Findings

Explanation

What this checks

InstructionWhat the explainer looks for
FROMMissing tag, latest, and stage names used by COPY --from
RUNapt-get without list cleanup, sudo, and curl piped to a shell
ADD / COPYADD of local files, and --from stages that do not exist yet
USER / CMDFinal stage still root, and shell form versus exec form