Dockerfile: Differences Between COPY and ADD
·
Updated:
COPY and ADD look similar but ADD auto-extracts tarballs and fetches URLs — know when each is appropriate and why COPY is usually better.
All the articles with the tag "dockerfile".
COPY and ADD look similar but ADD auto-extracts tarballs and fetches URLs — know when each is appropriate and why COPY is usually better.
CMD and ENTRYPOINT both define what runs in a container but work differently — exec vs shell form, and how they interact when combined.