From 543238fb4006a6db33fbfcfab8ca72227f737ce8 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Fri, 4 Jul 2025 10:03:44 -0400 Subject: [PATCH] install uv to correct dir --- Dockerfile | 7 ++----- docker/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a96d385d1..3b71bcf42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,16 +63,13 @@ RUN npm install WORKDIR /app # Install uv for the non-root user -RUN curl -LsSf https://astral.sh/uv/install.sh | sh - -# Make uv available to all users -ENV PATH="/usr/local/bin:$HOME/.local/bin:${PATH}" +RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh # Copy project files (including pyproject.toml and uv.lock) COPY pyproject.toml uv.lock* .python-version /app/ # Install Python and project dependencies -RUN uv install python 3.13 +RUN uv python install 3.13 RUN uv sync --all-extras # Copy entrypoint script diff --git a/docker/Dockerfile b/docker/Dockerfile index 11114e867..c12714dad 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -40,7 +40,7 @@ RUN apk add --no-cache \ mariadb-connector-c-dev \ musl-dev -RUN curl -LsSf https://astral.sh/uv/install.sh | sh +RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh WORKDIR /src