Skip to content

Commit

Permalink
feat: upgrade python to 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed Jan 25, 2024
1 parent 5fcb70a commit 1900c08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ RUN apt update && \
add-apt-repository ppa:deadsnakes/ppa

RUN apt update && \
apt install python3.12 && \
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
apt install python3.12 -y

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12

RUN sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1

RUN sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.12 2
RUN sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2

RUN sudo update-alternatives --config python3

Expand Down

0 comments on commit 1900c08

Please sign in to comment.