From 0fe8f6e8c12056134c7f503a5c34ccaaa884c5e3 Mon Sep 17 00:00:00 2001 From: dyzheng Date: Thu, 30 Oct 2025 20:19:11 +0800 Subject: [PATCH] Fix: update dockerfile to install LTS version --- Dockerfile.cuda | 2 +- Dockerfile.gnu | 2 +- Dockerfile.intel | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.cuda b/Dockerfile.cuda index 6b9b812e1f..15679e195e 100644 --- a/Dockerfile.cuda +++ b/Dockerfile.cuda @@ -26,7 +26,7 @@ RUN cd /tmp && \ ADD https://api.github.com/repos/deepmodeling/abacus-develop/git/refs/heads/develop /dev/null -RUN git clone https://github.com/deepmodeling/abacus-develop.git --depth 1 && \ +RUN git clone https://github.com/deepmodeling/abacus-develop.git -b LTS --depth 1 && \ cd abacus-develop && \ cmake -B build -DUSE_CUDA=ON -DENABLE_RAPIDJSON=ON && \ cmake --build build -j`nproc` && \ diff --git a/Dockerfile.gnu b/Dockerfile.gnu index 23b44f1e4c..5113ee9ce0 100644 --- a/Dockerfile.gnu +++ b/Dockerfile.gnu @@ -32,7 +32,7 @@ ADD https://api.github.com/repos/deepmodeling/abacus-develop/git/refs/heads/deve # This will fetch the latest commit info, and store in docker building cache. # If there are newer commits, docker build will ignore the cache and build latest codes. -RUN git clone https://github.com/deepmodeling/abacus-develop.git --depth 1 && \ +RUN git clone https://github.com/deepmodeling/abacus-develop.git -b LTS --depth 1 && \ cd abacus-develop && \ cmake -B build -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_RAPIDJSON=ON && \ cmake --build build -j`nproc` && \ diff --git a/Dockerfile.intel b/Dockerfile.intel index eeec96d2ba..0a3d8fee97 100644 --- a/Dockerfile.intel +++ b/Dockerfile.intel @@ -56,7 +56,7 @@ ENV CMAKE_PREFIX_PATH=/opt/libtorch/share/cmake ADD https://api.github.com/repos/deepmodeling/abacus-develop/git/refs/heads/develop /dev/null RUN source /opt/intel/oneapi/setvars.sh && \ - git clone https://github.com/deepmodeling/abacus-develop.git --depth 1 && \ + git clone https://github.com/deepmodeling/abacus-develop.git -b LTS --depth 1 && \ cd abacus-develop && \ cmake -B build -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_RAPIDJSON=ON && \ cmake --build build -j`nproc` && \