Advanced Containers & Virtualization #dockerfile#multi-stage-build#layer-caching

Dockerfile Writing Vocabulary

5 exercises — Master the English vocabulary of writing production-quality Dockerfiles: COPY vs ADD, CMD vs ENTRYPOINT, multi-stage builds, and layer caching.

0 / 5 completed
1 / 5

A code review comment reads: "You're using ADD to copy your application source into the image. Replace it with COPYADD has extra behaviour you don't need here, and it makes the Dockerfile harder to reason about."

Which statement best describes the key difference between COPY and ADD?