[KYUUBI #6175] [MINOR] Refactor copy path about SPARK_HOME in docker

# :mag: Description
## Issue References ๐Ÿ”—

This pull request fixes #

## Describe Your Solution ๐Ÿ”ง

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

## Types of changes :bookmark:

- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Test Plan ๐Ÿงช

#### Behavior Without This Pull Request :coffin:

#### Behavior With This Pull Request :tada:

#### Related Unit Tests

---

# Checklist ๐Ÿ“

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6175 from yanghua/docker-minor-refactor.

Closes #6175

e5c26364b [yanghua] Refactor copy path about SPARK_HOME in docker

Authored-by: yanghua <yanghua1127@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
diff --git a/bin/docker-image-tool.sh b/bin/docker-image-tool.sh
index 2412f39..2e8e356 100755
--- a/bin/docker-image-tool.sh
+++ b/bin/docker-image-tool.sh
@@ -110,7 +110,7 @@
         error "Cannot found dir SPARK_HOME $SPARK_HOME, you must configure SPARK_HOME correct."
       fi
     fi
-    cp -r "$SPARK_HOME/." "$KYUUBI_ROOT/spark-binary/"
+    cp -r "$SPARK_HOME"/* "$KYUUBI_ROOT"/spark-binary/
   fi
 
   # Verify that the Docker image content directory is present