diff --git a/tools/build-all-docker-images b/tools/build-all-docker-images
index 5a10fb90bc..74aa80fb8a 100755
--- a/tools/build-all-docker-images
+++ b/tools/build-all-docker-images
@@ -7,7 +7,7 @@ TOPDIR=$(git rev-parse --show-toplevel)
 WORKDIR=$(mktemp -d /tmp/kolla-workdir.XXXXXXXXXX)
 # Remove $WORKDIR otherwise $TOPDIR is copied *inside* of it
 rm -rf $WORKDIR
-cp -r "$TOPDIR" $WORKDIR
+cp -aL "$TOPDIR" $WORKDIR
 DOCKERDIR="$WORKDIR/docker"
 
 declare -A dependency