From 0a6c3adbf5a886fe98c9e7814e416dae07878047 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 2 Dec 2024 18:01:01 -0800 Subject: [PATCH] add uv to Dockerfil --- Dockerfile | 4 ++-- docker/pip-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a89cef3572ea..60ba12eabff32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,7 +85,7 @@ RUN if [ "$BUILD_TRANSLATIONS" = "true" ]; then \ # Transition to Python base image FROM python:${PY_VER} AS python-base -RUN pip install --no-cache-dir --upgrade setuptools pip +RUN pip install --no-cache-dir --upgrade setuptools pip uv ###################################################################### # Final lean image... @@ -191,7 +191,7 @@ RUN --mount=type=bind,source=./docker,target=/docker \ # Install Playwright and its dependencies RUN --mount=type=cache,target=/root/.cache/pip \ - pip install playwright \ + uv pip install --system playwright \ && playwright install-deps # Optionally install Chromium diff --git a/docker/pip-install.sh b/docker/pip-install.sh index 2defc7d1e792a..7e69a6efba164 100755 --- a/docker/pip-install.sh +++ b/docker/pip-install.sh @@ -47,10 +47,10 @@ fi # Choose whether to use pip cache if $USE_CACHE; then echo "Using pip cache..." - pip install "${ARGS[@]}" + uv pip install --system "${ARGS[@]}" else echo "Disabling pip cache..." - pip install --no-cache-dir "${ARGS[@]}" + uv pip install --system --no-cache-dir "${ARGS[@]}" fi # Remove build-essential if it was installed