]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Copy all install directories to proper system locations in Dockerfile
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 15:20:46 +0000 (16:20 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 15:21:05 +0000 (16:21 +0100)
Fixed the issue where config files and other resources were not accessible
because we were copying install/* to /usr/* which put configs at /usr/etc
instead of /etc. Now explicitly copying:
- install/bin -> /usr/bin (binaries)
- install/lib -> /usr/lib (libraries)
- install/share -> /usr/share (plugins, rules, webui)
- install/etc -> /etc (configuration files)

This ensures rspamd can find all its files at standard system locations.

test/integration/Dockerfile.local

index 9cf4b2f5ed59d53210bf0519c1fe3250239f8225..0040db75fe174c396e4de581f08b7880498c4087 100644 (file)
@@ -23,7 +23,10 @@ RUN apt-get update && apt-get install -y \
     libunwind8 \
     && rm -rf /var/lib/apt/lists/*
 
-COPY install /usr
+COPY install/bin /usr/bin
+COPY install/lib /usr/lib
+COPY install/share /usr/share
+COPY install/etc /etc
 
 RUN mkdir -p /var/lib/rspamd /var/log/rspamd /var/run/rspamd && \
     echo "/usr/lib/rspamd" > /etc/ld.so.conf.d/rspamd.conf && \