[[Software Engineering MOC]] # Docker Copy and Add In a [[Docker]]file, generally use `COPY` instead of `ADD` unless you need to extract an archive. In a [[Docker]]file, if `COPY`ing a directory, different behaviors will happen depending on structure - `COPY dataset /dataset/` - Copies the contents of the `dataset` directory on the host machine to the directory `/dataset/` in the container - `COPY dataset /` - Copies the contents of the `dataset` directory on the host machine to the container's root. ## Source https://riptutorial.com/docker/example/11005/copy-instruction