From 0667fa4c5633b291ef4b671a2b81cb037c637cf1 Mon Sep 17 00:00:00 2001 From: Matthias Krack Date: Mon, 22 Dec 2025 15:03:02 +0100 Subject: [PATCH] Update paths --- ci/docker/build_cp2k_spack.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/docker/build_cp2k_spack.Dockerfile b/ci/docker/build_cp2k_spack.Dockerfile index b11eb2d7df..4e64a80c8a 100644 --- a/ci/docker/build_cp2k_spack.Dockerfile +++ b/ci/docker/build_cp2k_spack.Dockerfile @@ -97,14 +97,14 @@ RUN CP2K_VERSION=$(cat /CP2K_VERSION) && \ ln -sf cp2k.${CP2K_VERSION} cp2k_shell # Update library search path -RUN echo "/opt/cp2k/lib\n/opt/spack/lib\n$(dirname $(find /opt/spack/lib -name libtorch.so 2>/dev/null || true) 2>/dev/null || true)" >/etc/ld.so.conf.d/cp2k.conf && ldconfig +RUN echo "/opt/cp2k/lib\n/opt/spack/view/lib\n$(dirname $(find /opt/spack ! -type l -name libtorch.so 2>/dev/null || true) 2>/dev/null || true)" >/etc/ld.so.conf.d/cp2k.conf && ldconfig # Create entrypoint script file RUN printf "#!/bin/bash\n\ ulimit -c 0 -s unlimited\n\ \ export OMP_STACKSIZE=64M\n\ -export PATH=/opt/cp2k/bin:/opt/spack/bin:\${PATH}\n\ +export PATH=/opt/cp2k/bin:/opt/spack/view/bin:\${PATH}\n\ exec \"\$@\"" \ >/opt/cp2k/bin/entrypoint.sh && chmod 755 /opt/cp2k/bin/entrypoint.sh