From 9d6bcc12668467e15edb275cdf20fe16130a1976 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Mon, 8 Apr 2024 18:43:36 +0200 Subject: [PATCH] :whale: Use uv to install dependencies in docker build Should be a lot faster, see https://github.com/astral-sh/uv --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d291e05687..ab64599fa9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,12 +30,12 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco WORKDIR /app -# Ensure we use the latest version of pip -RUN pip install pip -U +# Use uv to install dependencies +RUN pip install uv -U COPY ./requirements /app/requirements ARG TARGET_ENVIRONMENT=production -RUN pip install -r requirements/${TARGET_ENVIRONMENT}.txt +RUN uv pip install -r requirements/${TARGET_ENVIRONMENT}.txt # Apply patches of third party libraries COPY ./patches /tmp/patches