@@ -11,10 +11,11 @@ FROM ubuntu:22.04
1111RUN apt update && apt install -y --no-install-recommends \
1212 libopenblas-openmp-dev liblapack-dev libscalapack-mpi-dev libelpa-dev libfftw3 -dev libcereal-dev \
1313 libxc-dev libgtest-dev libgmock-dev libbenchmark-dev python3 -numpy \
14- bc cmake git g++ make time sudo unzip vim wget gfor tran
14+ bc cmake git g++ make time sudo unzip vim wget gfor tran ca-certificates && \
15+ rm -rf /var /lib/apt/lists/*
1516 # If you wish to use the LLVM compiler, replace 'g++' above with 'clang libomp-dev'.
1617
17- ENV GIT_SSL_NO_VERIFY = true TERM =xterm-256 color \
18+ ENV TERM =xterm-256 color \
1819 OMPI_ALLOW_RUN_AS_ROOT =1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM =1 OMPI_MCA_btl_vader_single_copy_mechanism =none
1920 # The above environment variables are for using OpenMPI in Docker.
2021
@@ -23,15 +24,16 @@ RUN git clone https://github.com/llohse/libnpy.git && \
2324 rm -r libnpy
2425
2526RUN wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11 -abi-shared-with -deps-2.0 .0 %2 Bcpu.zip \
26- --no-check-certificate -- quiet -O libtorch.zip && \
27+ --quiet -O libtorch.zip && \
2728 unzip -q libtorch.zip -d /opt && rm libtorch.zip
2829
2930# RapidJSON
30- RUN cd /tmp && wget --quiet https://codeload.github.com/Tencent/rapidjson/tar.gz/24 b5 e7 a -O rapidjson-24 b5 e7 a.tar.gz
31- RUN tar -xzf rapidjson-24 b5 e7 a.tar.gz && cd rapidjson-24 b5 e7 a
32- RUN cmake -B build -DRAPIDJSON_BUILD_DOC =OFF -DRAPIDJSON_BUILD_EXAMPLES =OFF -DRAPIDJSON_BUILD_TESTS =OFF
33- RUN cmake --build build --target install
34- RUN cd /tmp && rm -r rapidjson-24 b5 e7 a
31+ RUN cd /tmp && \
32+ wget --quiet https://codeload.github.com/Tencent/rapidjson/tar.gz/24 b5 e7 a -O rapidjson-24 b5 e7 a.tar.gz && \
33+ tar -xzf rapidjson-24 b5 e7 a.tar.gz && cd rapidjson-24 b5 e7 a && \
34+ cmake -B build -DRAPIDJSON_BUILD_DOC =OFF -DRAPIDJSON_BUILD_EXAMPLES =OFF -DRAPIDJSON_BUILD_TESTS =OFF && \
35+ cmake --build build --target install && \
36+ cd /tmp && rm -r rapidjson-24 b5 e7 a rapidjson-24 b5 e7 a.tar.gz
3537
3638ENV CMAKE_PREFIX_PATH =/opt/libtorch/share/cmake
3739
@@ -42,7 +44,7 @@ ADD https://api.github.com/repos/deepmodeling/abacus-develop/git/refs/heads/deve
4244RUN git clone https://github.com/deepmodeling/abacus-develop.git --depth 1 && \
4345 cd abacus-develop && \
4446 cmake -B build -DENABLE_MLALGO =ON -DENABLE_LIBXC =ON -DENABLE_LIBRI =ON -DENABLE_RAPIDJSON =ON && \
45- cmake --build build -j` nproc` && \
47+ cmake --build build -j $( nproc) && \
4648 cmake --install build && \
4749 rm -rf build
4850 # && rm -rf abacus-develop
0 commit comments