We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ADD ./cmd/prestd/prest.toml /app/prest.toml ADD ./etc/entrypoint.sh /app/entrtpoint.sh
COPY ./cmd/prestd/prest.toml /app/prest.toml COPY ./etc/entrypoint.sh /app/entrtpoint.sh
here: https://github.com/prest/prest/blob/d9d3ebc0d554e6fa8250630524c289303781bd90/Dockerfile#L11:L12
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy
For other items (files, directories) that do not require ADD’s tar auto-extraction capability, you should always use COPY.
Rule also implemented in https://github.com/RedCoolBeans/dockerlint/blob/master/src/checks.coffee
Consequently, the best use for ADD is local tar file auto-extraction into the image.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problematic code:
Correct code:
here: https://github.com/prest/prest/blob/d9d3ebc0d554e6fa8250630524c289303781bd90/Dockerfile#L11:L12
Rationale:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy
Rule also implemented in https://github.com/RedCoolBeans/dockerlint/blob/master/src/checks.coffee
Exceptions:
The text was updated successfully, but these errors were encountered: