From 7172023e407f9ea3791a4ebd952f19a2177a7ab4 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 29 Nov 2023 13:31:46 +0000 Subject: [PATCH] Improved python --- dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 7c4a812..f8c043d 100644 --- a/dockerfile +++ b/dockerfile @@ -19,9 +19,13 @@ RUN sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev l cd Python-3.10.*/ && \ ./configure --prefix=/usr/local --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \ make -j $(nproc) && \ - sudo make altinstall && \ + make altinstall && \ cd ../ && sudo rm -rf Python-3.10.*/ && sudo rm Python-3.10.*.tgz +RUN sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 1 +RUN sudo update-alternatives --install /usr/bin/python3 python /usr/local/bin/python3.10 1 +RUN sudo update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.10 1 + RUN python3.10 -m pip install --upgrade pip RUN python3.10 -m pip install --user --upgrade pip