@@ -1260,13 +1260,10 @@ doesn't support authentication.
1260
1260
` ADD ` obeys the following rules:
1261
1261
1262
1262
- The ` <src> ` path must be inside the build context;
1263
- you can't use ` COPY ../something /something` , because the builder can only
1263
+ you can't use ` ADD ../something /something` , because the builder can only
1264
1264
access files from the context, and ` ../something ` specifies a parent file or
1265
1265
directory of the build context root.
1266
1266
1267
- - If ` <src> ` is a directory, the entire contents of the directory are copied,
1268
- including filesystem metadata.
1269
-
1270
1267
- If ` <src> ` is a URL and ` <dest> ` does end with a trailing slash, then the
1271
1268
filename is inferred from the URL and the file is downloaded to
1272
1269
` <dest>/<filename> ` . For instance, ` ADD http://example.com/foobar / ` would
@@ -1308,8 +1305,8 @@ doesn't support authentication.
1308
1305
use of a wildcard, then ` <dest> ` must be a directory, and it must end with
1309
1306
a slash ` / ` .
1310
1307
1311
- - If ` <dest> ` doesn't end with a trailing slash, it will be considered a
1312
- regular file and the contents of ` <src> ` will be written at ` <dest> ` .
1308
+ - If ` <src> ` is a file, and ` < dest>` doesn't end with a trailing slash,
1309
+ the contents of ` <src> ` will be written as filename ` <dest> ` .
1313
1310
1314
1311
- If ` <dest> ` doesn't exist, it's created, along with all missing directories
1315
1312
in its path.
@@ -1487,8 +1484,8 @@ attempted to be used instead.
1487
1484
use of a wildcard, then ` <dest> ` must be a directory, and it must end with
1488
1485
a slash ` / ` .
1489
1486
1490
- - If ` <dest> ` doesn't end with a trailing slash, it will be considered a
1491
- regular file and the contents of ` <src> ` will be written at ` <dest> ` .
1487
+ - If ` <src> ` is a file, and ` < dest>` doesn't end with a trailing slash,
1488
+ the contents of ` <src> ` will be written as filename ` <dest> ` .
1492
1489
1493
1490
- If ` <dest> ` doesn't exist, it's created, along with all missing directories
1494
1491
in its path.
0 commit comments