Skip to content

Dockerfile instructions: FROM, WORKDIR, COPY, RUN, EXPOSE, USER

Select an icon to see what it is.

Step 3 of 6

COPY brings files in, ADD does more

COPY with the destination set to a dot copies a file from the build context into the current directory, /app, as a new layer. ADD does the same and can also unpack a local tar archive or fetch a URL. That extra behavior is surprising, so prefer COPY unless you need it.

New layer

/var/lib/docker/overlay2/<new-layer>/diff/app/app.sh