Difference between revisions of "COPY"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
--from=[[your-repo]]/your-image | --from=[[your-repo]]/your-image | ||
+ | |||
+ | |||
+ | {{php:apache Dockerfile}} | ||
== Errors == | == Errors == |
Revision as of 14:05, 15 February 2024
COPY . .
--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
When using COPY with more than one source file, the destination must be a directory and end with a /
Related
See also
Advertising: