# Copy directory to another directory using ADD command?

You can copy a directory to another directory using the `ADD` command in Docker.

The basic syntax of the `ADD` command is:

```bash
ADD source destination
```

- `source`: The path to the file or directory you want to copy into the Docker image.
- `destination`: The path where you want to copy the file or directory in the Docker image.

To copy a directory from the host machine to a directory in the Docker image, you can use the following `ADD` command:

```bash
ADD /path/to/local/directory /path/to/docker/directory
```

For example, to copy the directory `/home/user/myapp` from the host machine to the directory `/app` in the Docker image, you can use the following `ADD` command:

```bash
ADD /home/user/myapp /app
```

This will copy the entire `myapp` directory and its contents to the `/app` directory in the Docker image.

Note that the `ADD` command can also accept URLs as `source`, so you can also copy files or directories from a remote location. However, it is recommended to use the `COPY` command instead of `ADD` for local file copying, as `COPY` has less functionality than `ADD` and is therefore safer to use.