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.
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