Definition:
- Copies new files or directories from
<src>and adds them to the filesystem of the image at the path<dest>.-
Similar to Dockerfile COPY but can fetch files from remote HTTPS and Git and extracting tar files automatically when adding files from the build context
```dockerfile ADD https://example.com/archive.zip /usr/src/things/ ADD [email protected]:user/repo.git /usr/src/things/ ``` - Files and directories can be copied from the build context, a remote URL, or a Git repository.
- The last argument must always be the destination
- If you specify multiple source files, either directly or using a wildcard, then the destination must be a directory (must end with a slash
/)- ex:
ADD file1 file2 /dest/
- ex:
-
-
ADD [OPTIONS] <src> ... <dest> ADD [OPTIONS] ["<src>", ... "<dest>"]-
OPTIONS:
-