Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Fix patchelf step to work on ARM64 by using a glob for the .so filename

Daoud Clarkef0dca9b5e93e
diff --git a/Dockerfile.crawler b/Dockerfile.crawler
index b928039..3cf3a99 100644
--- a/Dockerfile.crawler
+++ b/Dockerfile.crawler
@@ -40,7 +40,7 @@ RUN uv pip install --python /venv/bin/python .
# directory and patch the extension's RPATH so it finds the library at runtime.
RUN SODIR=/venv/lib/python3.11/site-packages/mwmbl_rank && \
cp /app/mwmbl_rank/target/release/deps/libxgboost.so "$SODIR/" && \
- patchelf --set-rpath '$ORIGIN' "$SODIR/mwmbl_rank.cpython-311-x86_64-linux-gnu.so"
+ patchelf --set-rpath '$ORIGIN' "$SODIR"/mwmbl_rank.cpython-311-*.so
FROM base AS final