Skip to content

Glossary: Go in Practice

COPY

Also written: COPY --from, COPY --chown

A Dockerfile instruction that copies files into the image. `COPY --from=build` takes a file from an earlier stage, and `--chown` sets who owns it.

Where the book teaches it

Related terms

Multi-stage buildDockerfileNon-root