Fix pip bootstrap for Python 3.12
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
Nick
2025-12-26 10:22:02 +13:00
parent 18284e469a
commit 469911f2a7

View File

@@ -38,12 +38,11 @@ RUN apt-get update && apt-get install -y software-properties-common && \
ninja-build \
&& rm -rf /var/lib/apt/lists/*
# Set Python 3.12 as default
# Set Python 3.12 as default and bootstrap pip
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
# Upgrade pip
RUN python -m pip install --upgrade pip setuptools wheel
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
python3.12 -m ensurepip --upgrade && \
python3.12 -m pip install --upgrade pip setuptools wheel
# Install PyTorch 2.8.0+cu128 and triton 3.4.0
RUN pip install \