File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,23 @@ ARG COMPILER_PATH
99ARG COMPILER_LD_LIBRARY_PATH
1010
1111RUN apt-get update -y && \
12+ apt-get install -y software-properties-common ca-certificates gnupg && \
13+ add-apt-repository ppa:deadsnakes/ppa && \
14+ apt-get update -y && \
1215 if [ "$TARGET" != "gpu" ]; then \
1316 apt-get install -y \
14- build-essential git make cmake gcc g++ gfortran bc\
15- python3 python3-venv python3-pip \
17+ build-essential git make cmake gcc g++ gfortran bc \
18+ python3.11 python3.11 -venv python3-pip \
1619 openmpi-bin libopenmpi-dev libfftw3-dev \
1720 mpich libmpich-dev; \
1821 else \
1922 apt-get install -y \
20- build-essential git make cmake bc\
21- python3 python3-venv python3-pip \
23+ build-essential git make cmake bc \
24+ python3.11 python3.11 -venv python3-pip \
2225 libfftw3-dev \
2326 openmpi-bin libopenmpi-dev; \
2427 fi && \
28+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2 && \
2529 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2630
2731ENV OMPI_ALLOW_RUN_AS_ROOT=1
You can’t perform that action at this time.
0 commit comments