Use COPY instead of ADD in Dockerfile

Details

https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-

practices/#/add-or-copy

Solution

Use COPY instructions in Dockerfiles.Impact-You would need to take care of the functionalities provided by ADD instructions such as
fetching files from remote URLs.Default Value-Not Applicable

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles