When building an image in Docker, the message "Sending build context to Docker daemon xxGb" may cause a long wait time. This is because there are a large number of files in the build file path that need to be copied into the Docker daemon.
To solve this issue, simply add a .dockerignore
file in the build directory to exclude specified files or folders.