-
Notifications
You must be signed in to change notification settings - Fork 22.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change ADD to COPY in Dockerfiles #82151
Conversation
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 60fa330 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Are the CI failures real or transient? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending a clean CI run.
Not transient but unrelated, I've created a separate issue #82174 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty cool!
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
6c56c05
to
60fa330
Compare
@pytorchbot merge |
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
Docker docs says "For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY": https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy I've found this by running https://github.com/hadolint/hadolint This is a follow-up after #81944 Pull Request resolved: #82151 Approved by: https://github.com/huydhn, https://github.com/jeffdaily, https://github.com/ZainRizvi
Hey @kit1980. |
Summary: Docker docs says "For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY": https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy I've found this by running https://github.com/hadolint/hadolint This is a follow-up after #81944 Pull Request resolved: #82151 Approved by: https://github.com/huydhn, https://github.com/jeffdaily, https://github.com/ZainRizvi Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/8e926ff49e165095d01a6d7e72c25af96d927666 Reviewed By: osalpekar Differential Revision: D38216248 Pulled By: kit1980 fbshipit-source-id: 83e66e55581099da037c61de3646a43c4e81de11
Docker docs says "For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY": https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy
I've found this by running https://github.com/hadolint/hadolint
This is a follow-up after #81944