Skip to content
masterclass Buddy

Docker · Directive

COPY

COPY puts files from the build host into a container image. Use it to include application code, dependencies, or binaries in the image.

Last updated

Syntax

COPY <host-path> <image-path>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Dockerfile
  • FROM
  • WORKDIR
  • RUN
  • CMD
  • volume

Source: Writing a Dockerfile. Checked 2026-11-03.