]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
docker : preserve .so symlinks for docker container builds (#17214)
authorMike Abbott <redacted>
Wed, 12 Nov 2025 19:33:55 +0000 (12:33 -0700)
committerGitHub <redacted>
Wed, 12 Nov 2025 19:33:55 +0000 (20:33 +0100)
.devops/cann.Dockerfile
.devops/cpu.Dockerfile
.devops/cuda.Dockerfile
.devops/intel.Dockerfile
.devops/musa.Dockerfile
.devops/rocm.Dockerfile
.devops/vulkan.Dockerfile

index 02f3e03b5e2ea807096391bc1b1db247696d02e7..9d9fabf887ff4a8ccfca4b0c6cea6d7330620079 100644 (file)
@@ -49,7 +49,7 @@ RUN source /usr/local/Ascend/ascend-toolkit/set_env.sh --force \
 # -- Organize build artifacts for copying in later stages --
 # Create a lib directory to store all .so files
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 # Create a full directory to store all executables and Python scripts
 RUN mkdir -p /app/full && \
index e1bb7d4675dc375b9e4e0961092bbb7171916eba..6e16ecda44f036625fde5d5cf098ad1e8be04c8f 100644 (file)
@@ -20,7 +20,7 @@ RUN if [ "$TARGETARCH" = "amd64" ] || [ "$TARGETARCH" = "arm64" ]; then \
     cmake --build build -j $(nproc)
 
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \
index 4b708ae278ddf48d1f56bb3f13cb7ed3bf020847..54f793d0a3f530cb36402156015d8ddcdd58e0e8 100644 (file)
@@ -25,7 +25,7 @@ RUN if [ "${CUDA_DOCKER_ARCH}" != "default" ]; then \
     cmake --build build --config Release -j$(nproc)
 
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \
index cd2f9aa79bd1ec394dfe2d32be1c2f6c92770622..d1a8fbed4cf1a32814a257bd569f74c8d7624925 100644 (file)
@@ -21,7 +21,7 @@ RUN if [ "${GGML_SYCL_F16}" = "ON" ]; then \
     cmake --build build --config Release -j$(nproc)
 
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \
index ec44b229143f27a039e1e746c3ad4bc2ee05c965..faa3500e619deba5e4f7bd31f62add76964c5e6f 100644 (file)
@@ -32,7 +32,7 @@ RUN if [ "${MUSA_DOCKER_ARCH}" != "default" ]; then \
     cmake --build build --config Release -j$(nproc)
 
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \
index df9058d946a7ba1cca0b899edb1ef9c7a6c4e758..d6bf28b1058829ac04f951754b3ae5a90187cb0c 100644 (file)
@@ -45,7 +45,7 @@ RUN HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
     && cmake --build build --config Release -j$(nproc)
 
 RUN mkdir -p /app/lib \
-    && find build -name "*.so" -exec cp {} /app/lib \;
+    && find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \
index 7592468403798172b14a2f5ef4cae696b2d8562f..b6b802a7c6e7daaea36ce6ecb6b2b2eda6d026c4 100644 (file)
@@ -20,7 +20,7 @@ RUN cmake -B build -DGGML_NATIVE=OFF -DGGML_VULKAN=ON -DLLAMA_BUILD_TESTS=OFF -D
     cmake --build build --config Release -j$(nproc)
 
 RUN mkdir -p /app/lib && \
-    find build -name "*.so" -exec cp {} /app/lib \;
+    find build -name "*.so*" -exec cp -P {} /app/lib \;
 
 RUN mkdir -p /app/full \
     && cp build/bin/* /app/full \