From eb780b1b9f4c5ad4fd47cbea199fc0ee60b8c102 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Oct 2025 11:26:14 +0100 Subject: [PATCH] [Fix] Add ldconfig and library path configuration to Dockerfile The rspamd shared libraries are installed in /usr/lib/rspamd/ which is not in the default dynamic linker search path. This causes the error: librspamd-server.so: cannot open shared object file Fixed by: - Adding /usr/lib/rspamd to /etc/ld.so.conf.d/rspamd.conf - Running ldconfig to update the dynamic linker cache This ensures all rspamd shared libraries are found at runtime. --- test/integration/Dockerfile.local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/Dockerfile.local b/test/integration/Dockerfile.local index c5c03de027..be894c1e61 100644 --- a/test/integration/Dockerfile.local +++ b/test/integration/Dockerfile.local @@ -23,7 +23,9 @@ RUN apt-get update && apt-get install -y \ COPY install /usr -RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd +RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd && \ + echo "/usr/lib/rspamd" > /etc/ld.so.conf.d/rspamd.conf && \ + ldconfig EXPOSE 11333 11334 11335 -- 2.47.3