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 b91fa59 commit 8103548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ 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
# removed --with-lto for https://github.com/python/cpython/issues/94825
# removed --enable-optimizations and --with-lto for https://github.com/python/cpython/issues/94825
# install python
RUN 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 && \
./configure --enable-shared && \
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 8103548

Please sign in to comment.