COPY vs ADD?

IntermediateConceptDocker
Answer

Prefer COPY, which simply copies files. ADD also extracts local tar archives and can fetch URLs, and that hidden behaviour is why COPY is the default choice.

All Real-World Interview questions Roadmap: Interview readiness

More on Docker