[Intel GPU] Add rust support to XPU docker images (#35877)

This commit is contained in:
Polisetty V R K Jyothendra Varma
2026-08-31 10:52:57 +08:00
committed by GitHub
parent 3139ceaeec
commit df75ec5f77
+4 -1
View File
@@ -58,10 +58,13 @@ RUN apt-get update && apt-get install -y software-properties-common curl && \
RUN apt-get update && apt-get install -y \
python3-dev \
build-essential \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
ENV PATH="/root/.local/bin:/root/.cargo/bin:$PATH"
RUN curl --proto '=https' --retry 3 --retry-delay 2 --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --no-modify-path --profile minimal && rustc --version && cargo --version
ENV VIRTUAL_ENV="/opt/venv"
ENV UV_PYTHON_INSTALL_DIR=/opt/uv/python
RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}