mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 11:24:53 +00:00
fix(docker): Set uv install dir
This commit is contained in:
parent
39cfe232fd
commit
2394437dc7
@ -165,8 +165,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
git \
|
git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
ENV UV_PYTHON_INSTALL_DIR="/usr/share/uv"
|
||||||
# ENV PATH="$PATH:/root/.local/bin"
|
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.5.31 /uv /uvx /bin/
|
COPY --from=ghcr.io/astral-sh/uv:0.5.31 /uv /uvx /bin/
|
||||||
# Install flash-attention dependencies
|
# Install flash-attention dependencies
|
||||||
# RUN pip install einops --no-cache-dir
|
# RUN pip install einops --no-cache-dir
|
||||||
@ -254,6 +253,6 @@ FROM base
|
|||||||
COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh
|
COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh
|
||||||
RUN chmod +x /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"]
|
ENTRYPOINT ["/tgi-entrypoint.sh"]
|
||||||
# CMD ["--json-output"]
|
# CMD ["--json-output"]
|
||||||
|
Loading…
Reference in New Issue
Block a user