You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ADD instruction is best for when you need to download a remote artifact as part of your build. ADD is better than manually adding files using something like wget and tar, because it ensures a more precise build cache. ADD also has built-in support for checksum validation of the remote resources, and a protocol for parsing branches, tags, and subdirectories from Git URLs.
The rule DL3020 in itself is correct though, since it is about "Use COPY instead of ADD for files and folders", and it has an exception regarding tar files. But the quote should be removed or changed to a non-quote as that quote cannot be found anymore on https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy.
The text was updated successfully, but these errors were encountered:
Expected behavior
The rationale should always be properly described to avoid users implementing an incorrect Dockerfile. The rationale should thus be updated.
Actual behavior
https://github.com/hadolint/hadolint/wiki/DL3020 states:
This statement is not included anymore when checking the reference page https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy. Instead this page says:
The rule DL3020 in itself is correct though, since it is about "Use COPY instead of ADD for files and folders", and it has an exception regarding
tar
files. But the quote should be removed or changed to a non-quote as that quote cannot be found anymore on https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy.The text was updated successfully, but these errors were encountered: