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
Copy file name to clipboardExpand all lines: docker/README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,32 @@ There can only be one CMD instruction in a Dockerfile. If you list more than one
105
105
#### ENV
106
106
#### ADD
107
107
#### COPY
108
+
The ```COPY``` instruction copies new files or directories from ```<src>``` and adds them to the filesystem of the container at the path ```<dest>```.
109
+
110
+
Multiple ```<src>``` resources may be specified but the paths of files and directories will be interpreted as relative to the source of the context of the build.
- The <src> path must be inside the context of the build; you cannot COPY ../something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the docker daemon.
129
+
- If <src> is a directory, the entire contents of the directory are copied, including filesystem metadata.
0 commit comments