Skip to content

Commit b7ed54b

Browse files
authored
Add ca-certificates and clean apt cache in Dockerfile
Updated Dockerfile to include ca-certificates and clean apt cache.
1 parent 2982b4a commit b7ed54b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfile.gnu

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ FROM ubuntu:22.04
1111
RUN 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 gfortran
14+
bc cmake git g++ make time sudo unzip vim wget gfortran 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-256color \
18+
ENV TERM=xterm-256color \
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,7 +24,7 @@ RUN git clone https://github.com/llohse/libnpy.git && \
2324
rm -r libnpy
2425

2526
RUN wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.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

0 commit comments

Comments
 (0)