From 6840bbead5f8be1db7c1e68ebd19b1c4aa3dba0b Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Thu, 12 Sep 2024 21:16:16 -0400 Subject: [PATCH] try --- docker/AlmaLinux8.Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker/AlmaLinux8.Dockerfile b/docker/AlmaLinux8.Dockerfile index 70ae5ee7..344ab9e7 100644 --- a/docker/AlmaLinux8.Dockerfile +++ b/docker/AlmaLinux8.Dockerfile @@ -14,7 +14,6 @@ RUN dnf config-manager --set-enabled powertools RUN dnf install -y -q \ git \ git-lfs \ - python39 \ wget \ gcc-toolset-11 \ gcc-toolset-11-libubsan-devel \ @@ -40,6 +39,18 @@ RUN dnf module install -y -q nvidia-driver:535-dkms RUN echo "source /opt/rh/gcc-toolset-11/enable" >> /etc/bashrc SHELL ["/bin/bash", "--login", "-c"] +# Install newer version of Python +RUN wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz && \ + tar xzf Python-3.9.6.tgz && \ + cd Python-3.9.6 && \ + ./configure --enable-optimizations --enable-loadable-sqlite-extensions && \ + make altinstall && \ + cd .. && \ + rm Python-3.9.6.tgz && \ + rm -rf Python-3.9.6 && \ + ln -sf /usr/local/bin/python3.9 /usr/bin/python3 && \ + ln -sf /usr/local/bin/pip3.9 /usr/bin/pip3 + # Install newer version of CMake RUN wget https://cmake.org/files/v3.24/cmake-3.24.2.tar.gz && \ tar xzf cmake-3.24.2.tar.gz && \