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 28, 2023
1 parent 7103bd4 commit df90f9e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ RUN yum install -y httpd httpd-devel gcc gridsite git psmisc less wget logrotate
# Changed to install openssl11 since Python requires a OpenSSL 1.1.1 or newer
# openssl-devel bzip2-devel libffi-devel zlib-devel

# install python
# install python NB: patch configure to link with OpenSSL 1.1.1
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-* && \
LDFLAGS="${LDFLAGS} -Wl,-rpath=/lib64/openssl11/" ./configure --enable-optimizations --enable-shared --with-lto --with-openssl=/bin/openssl11 && \
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure && \
./configure --enable-optimizations --enable-shared --with-lto && \
make altinstall && \
echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig && \
cd / && rm -rf /tmp/pyton

# Changed to link Python against OpenSSL 1.1
# ./configure --enable-optimizations --enable-shared --with-lto && \

# install postgres
RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
Expand Down

0 comments on commit df90f9e

Please sign in to comment.