From c760a183984f1bd664ffad3fe80041fe978f8dd7 Mon Sep 17 00:00:00 2001 From: Seda Gundogdu Date: Mon, 5 Aug 2024 18:05:53 +0300 Subject: [PATCH] Fix python installation in Dockerfile --- test-images/almalinux-9/Dockerfile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/test-images/almalinux-9/Dockerfile b/test-images/almalinux-9/Dockerfile index 8fa4ecc8..348e8163 100644 --- a/test-images/almalinux-9/Dockerfile +++ b/test-images/almalinux-9/Dockerfile @@ -42,17 +42,18 @@ RUN cd ~ && initdb -D citus && echo "shared_preload_libraries = 'citus'" >> citu USER root # Install python 3.8 and its dependencies RUN yum install -y gcc make && \ - yum -y install libcurl-devel \ - openssl-devel \ - bzip2-devel \ - libffi-devel \ - xz-devel \ - curl https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz --output Python-3.8.12.tgz &&\ - tar xvf Python-3.8.12.tgz &&\ - cd Python-3.8.*/ && \ - ./configure --enable-optimizations && \ - make altinstall && \ - python3.8 -m pip install pip-tools + yum -y install libcurl-devel \ + openssl-devel \ + bzip2-devel \ + libffi-devel \ + xz-devel && \ + curl https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz --output Python-3.8.12.tgz && \ + tar xvf Python-3.8.12.tgz && \ + cd Python-3.8.*/ && \ + ./configure --enable-optimizations && \ + make altinstall && \ + python3.8 -m pip install pip-tools + COPY scripts/* ./