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.
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.