COPY
Jump to navigation
Jump to search
COPY . .
COPY hom* /mydir/
COPY --chown
--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]
COPY,COPY --chownDockerfile: FROM, RUN, CMD, ENTRYPOINT, WORKDIR, COPY, ADD, USER, ENV, ARG, HEALTHCHECK,hadolint, LABEL, EXPOSE
Advertising: