Skip to content

Commit

Permalink
update python version to 3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Oct 17, 2023
1 parent fb900a5 commit 9a0e2f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ RUN apt update && \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev


# Install Python 3.11.x
# Install Python 3.12.x
# https://www.python.org/downloads/
RUN cd /tmp && \
curl https://www.python.org/ftp/python/3.11.4/Python-3.11.4.tgz --output Python-3.11.4.tgz && \
tar xzf Python-3.11.4.tgz && \
rm --force Python-3.11.4.tgz && \
cd Python-3.11.4 && \
curl https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz --output Python-3.12.0.tgz && \
tar xzf Python-3.12.0.tgz && \
rm --force Python-3.12.0.tgz && \
cd Python-3.12.0 && \
./configure && \
make && \
make install && \
cd .. && \
rm --force --recursive Python-3.11.4 && \
rm --force --recursive Python-3.12.0 && \
ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \
ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \
pip3 install --upgrade pip
Expand Down

0 comments on commit 9a0e2f9

Please sign in to comment.