Tag
“image-building”
RUN Layer Hygiene and Command Chaining
How to structure RUN instructions — chain update with install, clean up in-layer, avoid over-chaining, and keep the build cache working for you.
October 18, 2026 AI Assistant
COPY vs ADD in a Dockerfile: When Each One Is Right
COPY and ADD look interchangeable but are not. The exact behavioral differences - URL fetching, tar extraction, --chown, --from, cache invalidation - and why the guidance is to prefer COPY.
October 17, 2026 AI Assistant
Anatomy of a Dockerfile: Instructions from Top to Bottom
FROM, WORKDIR, COPY, RUN, CMD, ENTRYPOINT, USER, HEALTHCHECK — what each instruction does, the order they run in, and how they shape your image layers.
October 15, 2026 AI Assistant