From 2394437dc7729dc3906af13d604fd0d5ef7e260e Mon Sep 17 00:00:00 2001 From: Sebastian Liebscher Date: Sun, 27 Apr 2025 18:56:48 +0200 Subject: [PATCH] fix(docker): Set uv install dir --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03840b97..b202710b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -165,8 +165,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins git \ && rm -rf /var/lib/apt/lists/* -# RUN curl -LsSf https://astral.sh/uv/install.sh | sh -# ENV PATH="$PATH:/root/.local/bin" +ENV UV_PYTHON_INSTALL_DIR="/usr/share/uv" COPY --from=ghcr.io/astral-sh/uv:0.5.31 /uv /uvx /bin/ # Install flash-attention dependencies # RUN pip install einops --no-cache-dir @@ -254,6 +253,6 @@ FROM base COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh RUN chmod +x /tgi-entrypoint.sh -ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/" +ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/" ENTRYPOINT ["/tgi-entrypoint.sh"] # CMD ["--json-output"]