Difference between revisions of "COPY"
Jump to navigation
Jump to search
(Created page with " COPY . . == See also == * {{Dockerfile}}") |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | * https://docs.docker.com/reference/dockerfile/#copy | |
+ | <code>COPY . .</code> | ||
+ | |||
+ | <code>COPY hom* /mydir/</code> | ||
+ | |||
+ | <code>[[COPY --from=builder]]</code> | ||
+ | |||
+ | --from=[[your-repo]]/your-image | ||
+ | |||
+ | |||
+ | {{php:apache Dockerfile}} | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[When using COPY with more than one source file, the destination must be a directory and end with a /]]</code> | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[ADD]]</code> | ||
== See also == | == See also == | ||
+ | * {{COPY}} | ||
* {{Dockerfile}} | * {{Dockerfile}} | ||
+ | |||
+ | [[Category:Docker]] |
Latest revision as of 17:43, 22 February 2024
COPY . .
COPY hom* /mydir/
--from=your-repo/your-image
FROM php:apache # Copy your PHP files to the document root COPY index.php /var/www/html # Expose the web server port EXPOSE 80
Errors[edit]
When using COPY with more than one source file, the destination must be a directory and end with a /
Related[edit]
See also[edit]
Advertising: