From 8e111041a8b2223b16dcc5e623d4b9c20ecddd42 Mon Sep 17 00:00:00 2001 From: tmaeno Date: Mon, 31 Jul 2023 11:35:55 +0200 Subject: [PATCH] python 3.11 in Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0bab805b..943359bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,15 +17,16 @@ RUN yum install -y httpd httpd-devel gcc gridsite git psmisc less wget logrotate openssl11 openssl11-devel bzip2-devel libffi-devel zlib-devel # patch configure to link with OpenSSL 1.1.1 -# use -j 1 for https://github.com/python/cpython/issues/94825 +# install dev tools for https://github.com/python/cpython/issues/94825 # install python -RUN mkdir /tmp/python && cd /tmp/python && \ +RUN yum groupinstall "Development Tools" -y && \ + mkdir /tmp/python && cd /tmp/python && \ wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \ tar -xzf Python-*.tgz && rm -f Python-*.tgz && \ cd Python-* && \ sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure && \ ./configure --enable-optimizations --enable-shared --with-lto && \ - make -j 1 altinstall && \ + make altinstall && \ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig && \ cd / && rm -rf /tmp/pyton