From 4ef47839ae3f7b51cd6e266449ae2946890f7203 Mon Sep 17 00:00:00 2001 From: Yineng Zhang Date: Tue, 5 Aug 2025 13:38:22 -0700 Subject: [PATCH] feat: use py312 (#8832) --- docker/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index d473d13ca..a3b8556b1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,6 +12,15 @@ ENV DEBIAN_FRONTEND=noninteractive \ ENV PATH="${PATH}:/usr/local/nvidia/bin" \ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/nvidia/lib:/usr/local/nvidia/lib64" +RUN apt update && apt install wget -y && apt install software-properties-common -y \ + && add-apt-repository ppa:deadsnakes/ppa -y \ + && apt install python3.12-full -y \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 \ + && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2 \ + && update-alternatives --set python3 /usr/bin/python3.12 \ + && wget https://bootstrap.pypa.io/get-pip.py \ + && python3 get-pip.py + # Set timezone and install all packages RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \ && echo 'tzdata tzdata/Zones/America select Los_Angeles' | debconf-set-selections \