diff --git a/.github/Dockerfile b/.github/Dockerfile index c7ddcd95a7..c6a08d8e71 100644 --- a/.github/Dockerfile +++ b/.github/Dockerfile @@ -9,19 +9,23 @@ ARG COMPILER_PATH ARG COMPILER_LD_LIBRARY_PATH RUN apt-get update -y && \ + apt-get install -y software-properties-common ca-certificates gnupg && \ + add-apt-repository ppa:deadsnakes/ppa && \ + apt-get update -y && \ if [ "$TARGET" != "gpu" ]; then \ apt-get install -y \ - build-essential git make cmake gcc g++ gfortran bc\ - python3 python3-venv python3-pip \ + build-essential git make cmake gcc g++ gfortran bc \ + python3.11 python3.11-venv python3-pip \ openmpi-bin libopenmpi-dev libfftw3-dev \ mpich libmpich-dev; \ else \ apt-get install -y \ - build-essential git make cmake bc\ - python3 python3-venv python3-pip \ + build-essential git make cmake bc \ + python3.11 python3.11-venv python3-pip \ libfftw3-dev \ openmpi-bin libopenmpi-dev; \ fi && \ + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2 && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ENV OMPI_ALLOW_RUN_AS_ROOT=1