When building an image in Docker, the message "Sending build context to Docker daemon xxGb" causes the process to take a long time. This is because there are large or numerous files in the file path being built, which all need to be copied into the Docker daemon. To solve this issue, simply add a ".dockerignore" file in the build directory and specify the files or folders to be excluded.