From a150f6e8685599988acd9f86cfb663c98316d1ff Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 23 Feb 2024 11:16:25 -0500 Subject: [PATCH] Try out uv --- src/django/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/django/Dockerfile b/src/django/Dockerfile index d77ae42b..8a04db01 100644 --- a/src/django/Dockerfile +++ b/src/django/Dockerfile @@ -16,7 +16,8 @@ RUN set -ex \ postgresql-client \ " \ && apt-get update && apt-get install -y $buildDeps $deps --no-install-recommends \ - && pip install --no-cache-dir -r requirements.txt \ + && pip install uv \ + && VIRTUAL_ENV=$(python -c "import sys; print(sys.prefix)") uv pip install -r requirements.txt \ && apt-get purge -y --auto-remove $buildDeps \ $(! command -v gpg > /dev/null || echo 'gnupg dirmngr') \ && rm -rf requirements.txt /var/lib/apt/lists/*