From 48ea05d6dbdd3b1c1c31cdbed4afdde86dd3d652 Mon Sep 17 00:00:00 2001 From: Andrei Radulescu Date: Thu, 25 Jul 2024 22:59:33 +0300 Subject: [PATCH] uv pip install in a separate tmp folder (#257) * move uv pip install in separate tmp folder * [upload] --- Dockerfile.agnos | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.agnos b/Dockerfile.agnos index 5c4165db..d91027a7 100644 --- a/Dockerfile.agnos +++ b/Dockerfile.agnos @@ -88,12 +88,13 @@ RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \ pyenv rehash # Install openpilot python packages -COPY ./userspace/pyproject.toml ./userspace/uv.lock /tmp/agnos/ +RUN mkdir -p /tmp/agnos/uv +COPY ./userspace/pyproject.toml ./userspace/uv.lock /tmp/agnos/uv RUN export PATH="/usr/local/pyenv/bin:/usr/local/pyenv/shims:$PATH" && \ export PYENV_ROOT="/usr/local/pyenv" && \ eval "$(pyenv init -)" && \ eval "$(pyenv virtualenv-init -)" && \ - cd /tmp/agnos && \ + cd /tmp/agnos/uv && \ export PYOPENCL_CL_PRETEND_VERSION="2.0" && \ MAKEFLAGS="-j$(nproc)" UV_NO_CACHE=1 uv pip install --no-cache-dir --system .