From aea36733eec201566572f937148633ee42e8e4f9 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 25 May 2024 14:27:17 -0500 Subject: [PATCH] chore: Use uv during Dockerfile build * Speed up the Dockerfile build by using uv to install all Python dependencies. --- docker/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 154d279e35..c64b462ac1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -15,9 +15,10 @@ RUN apt-get -qq -y update && \ rm -rf /var/lib/apt/lists/* && \ python -m venv /usr/local/venv && \ cd /code && \ - python -m pip --no-cache-dir install --upgrade pip setuptools wheel && \ - python -m pip --no-cache-dir install '.[xmlio,contrib]' && \ - python -m pip list + python -m pip --no-cache-dir install --upgrade uv && \ + uv pip install --no-cache --upgrade pip setuptools wheel && \ + uv pip install --no-cache '.[xmlio,contrib]' && \ + uv pip list FROM base