When ADD Is the Right Choice
Which use of ADD has a behaviour that COPY doesn't offer?
ADD
COPY
Choose one answer
ADD app.py /app/ to copy a single file into a new directory.
ADD app.py /app/
ADD --chown=app:app . /app to set the owner of copied files.
ADD --chown=app:app . /app
ADD vendor.tar.gz /opt/vendor/ to extract a local archive into the directory.
ADD vendor.tar.gz /opt/vendor/
ADD config/ /etc/app/ to copy a whole directory tree and keep its file permissions.
ADD config/ /etc/app/