From 88dd78a69cf4ee7ce1bfbbb4d7c33e689477c88a Mon Sep 17 00:00:00 2001 From: zyy17 Date: Thu, 19 Oct 2023 23:46:15 +0800 Subject: [PATCH] ci: remove the old version python (#2624) ci: remove old version python --- docker/dev-builder/ubuntu/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/dev-builder/ubuntu/Dockerfile b/docker/dev-builder/ubuntu/Dockerfile index b117d6f0f409..34855b5476fe 100644 --- a/docker/dev-builder/ubuntu/Dockerfile +++ b/docker/dev-builder/ubuntu/Dockerfile @@ -19,8 +19,13 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ build-essential \ pkg-config \ python3.10 \ - python3.10-dev \ - python3-pip + python3.10-dev + +# Remove Python 3.8 and install pip. +RUN apt-get -y purge python3.8 && \ + apt-get -y autoremove && \ + ln -s /usr/bin/python3.10 /usr/bin/python3 && \ + curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10 RUN git config --global --add safe.directory /greptimedb