From 3f0a204ffb6535d4c7dbb4d2f3bb7efc2e98eeab Mon Sep 17 00:00:00 2001 From: tongke6 Date: Mon, 22 Sep 2025 18:53:36 +0800 Subject: [PATCH] install uv in secretflow/ubuntu-base-ci & secretflow/lint-ci --- dockerfiles/lint-ci.DockerFile | 5 +++++ dockerfiles/ubuntu-base-ci.DockerFile | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/dockerfiles/lint-ci.DockerFile b/dockerfiles/lint-ci.DockerFile index 83acba5..a4465cf 100644 --- a/dockerfiles/lint-ci.DockerFile +++ b/dockerfiles/lint-ci.DockerFile @@ -20,6 +20,11 @@ RUN curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh \ && apt-get install -y nodejs \ && apt-get clean +# install uv +RUN curl -sL https://astral.sh/uv/install.sh -o uv_install.sh \ + && sh uv_install.sh \ + && rm -f uv_install.sh + RUN npm install markdownlint-cli2 --global \ && rm -rf node_modules diff --git a/dockerfiles/ubuntu-base-ci.DockerFile b/dockerfiles/ubuntu-base-ci.DockerFile index ba1dfe4..3300b6b 100644 --- a/dockerfiles/ubuntu-base-ci.DockerFile +++ b/dockerfiles/ubuntu-base-ci.DockerFile @@ -39,6 +39,11 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then CONDA_ARCH=aarch64 ; else CO # Add conda to path ENV PATH="/root/miniconda3/bin:${PATH}" +# install uv +RUN curl -sL https://astral.sh/uv/install.sh -o uv_install.sh \ + && sh uv_install.sh \ + && rm -f uv_install.sh + # install bazel RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then BAZEL_ARCH=arm64 ; else BAZEL_ARCH=amd64 ; fi \ && wget https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-$BAZEL_ARCH \