Fix docker build for aarch64 images
@@ -11,7 +11,7 @@ echo "Using final root directory of $root"
cd $root
-for f in $(find bin lib jre -type f -executable -or -name "*.so*"); do
+for f in $(find bin lib jre -type f -executable -or -name "*.so*" | grep -v libc.so.6 | grep -v libpthread.so.0); do
existing_rpath=$(patchelf --print-rpath $f 2>/dev/null || true)
- patchelf --set-rpath '$ORIGIN/'$($root/bin/realpath --relative-to $(dirname $f) ${root%/}/lib):$existing_rpath $f 2>/dev/null || true
+ patchelf --set-rpath '$ORIGIN/'$(/usr/bin/realpath --relative-to $(dirname $f) ${root%/}/lib):$existing_rpath $f 2>/dev/null || true
done
