Skip to content

Commit

Permalink
python 3.11 in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Jul 31, 2023
1 parent 9deaf2a commit 8e11104
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8e11104

Please sign in to comment.