From ea74d092c9b8b7dc1887c95ffcebbfdd33d28bbb Mon Sep 17 00:00:00 2001 From: Andrew Ying Date: Sun, 17 Nov 2024 20:07:36 +0000 Subject: [PATCH] Fix Python build and install steps --- ubuntu-jammy/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ubuntu-jammy/Dockerfile b/ubuntu-jammy/Dockerfile index e56a6ba..83c71ed 100644 --- a/ubuntu-jammy/Dockerfile +++ b/ubuntu-jammy/Dockerfile @@ -37,7 +37,7 @@ RUN set -x \ && tar -xvzf Python-${PYTHON_VERSION}.tgz \ && cd Python-${PYTHON_VERSION} \ && ./configure \ - --prefix=/usr/lib/python${PYTHON_VERSION_SHORT} \ + --prefix=/usr \ --enable-optimizations \ && make @@ -70,6 +70,7 @@ RUN apt-get update -y \ make \ openssl \ sudo \ + tklib \ vim RUN adduser --home /home/runner --shell /bin/bash --disabled-password runner \ @@ -92,7 +93,7 @@ RUN set -x \ && cd /tmp/build/Python-${PYTHON_VERSION} \ && make install \ && cd ../ \ - && rm -f Python-${PYTHON_VERSION} \ + && rm -r Python-${PYTHON_VERSION} \ && ln -s /usr/lib/python${PYTHON_VERSION_SHORT}/bin/python${PYTHON_VERSION_SHORT} /usr/local/bin/python${PYTHON_VERSION_SHORT} \ && ln -s /usr/local/bin/python${PYTHON_VERSION_SHORT} /usr/local/bin/python3 \ && curl -O https://bootstrap.pypa.io/get-pip.py \