File tree Expand file tree Collapse file tree 7 files changed +20
-12
lines changed Expand file tree Collapse file tree 7 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33RUN mkdir -p /tei
44ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.2.2.tar.gz /tei/sources.tar.gz
Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33
44RUN mkdir -p /tei
Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33
44RUN mkdir -p /tei
Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33RUN mkdir -p /tei
44ADD https://github.com/huggingface/text-embeddings-inference/archive/refs/tags/v1.2.2.tar.gz /tei/sources.tar.gz
@@ -10,19 +10,21 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
1010ENV SCCACHE=0.5.4
1111ENV RUSTC_WRAPPER=/usr/local/bin/sccache
1212ENV PATH="/root/.cargo/bin:${PATH}"
13+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
14+ ENV CARGO_CHEF=0.1.62
1315
1416RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1517 curl \
1618 libssl-dev \
1719 pkg-config \
1820 && rm -rf /var/lib/apt/lists/*
1921
20- # Download and configure sccache
22+ # Donwload and configure sccache
2123RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \
2224 chmod +x /usr/local/bin/sccache
2325
2426RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
25- RUN cargo install cargo-chef --locked
27+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
2628
2729FROM base-builder AS planner
2830
Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33
44RUN mkdir -p /tei
@@ -11,19 +11,21 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
1111ENV SCCACHE=0.5.4
1212ENV RUSTC_WRAPPER=/usr/local/bin/sccache
1313ENV PATH="/root/.cargo/bin:${PATH}"
14+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
15+ ENV CARGO_CHEF=0.1.62
1416
1517RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1618 curl \
1719 libssl-dev \
1820 pkg-config \
1921 && rm -rf /var/lib/apt/lists/*
2022
21- # Download and configure sccache
23+ # Donwload and configure sccache
2224RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \
2325 chmod +x /usr/local/bin/sccache
2426
2527RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
26- RUN cargo install cargo-chef --locked
28+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
2729
2830FROM base-builder AS planner
2931
Original file line number Diff line number Diff line change 1- # Fetch and extract the TGI sources
1+ # Fetch and extract the TEI sources
22FROM alpine AS tei
33
44RUN mkdir -p /tei
@@ -11,6 +11,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
1111ENV SCCACHE=0.5.4
1212ENV RUSTC_WRAPPER=/usr/local/bin/sccache
1313ENV PATH="/root/.cargo/bin:${PATH}"
14+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
15+ ENV CARGO_CHEF=0.1.62
1416
1517RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1618 curl \
@@ -23,7 +25,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
2325 chmod +x /usr/local/bin/sccache
2426
2527RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
26- RUN cargo install cargo-chef --locked
28+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
2729
2830FROM base-builder AS planner
2931
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
1111ENV SCCACHE=0.5.4
1212ENV RUSTC_WRAPPER=/usr/local/bin/sccache
1313ENV PATH="/root/.cargo/bin:${PATH}"
14+ # aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.75-bookworm`
15+ ENV CARGO_CHEF=0.1.62
1416
1517RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1618 curl \
@@ -23,7 +25,7 @@ RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sc
2325 chmod +x /usr/local/bin/sccache
2426
2527RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
26- RUN cargo install cargo-chef --locked
28+ RUN cargo install cargo-chef --version $CARGO_CHEF -- locked
2729
2830FROM base-builder AS planner
2931
You can’t perform that action at this time.
0 commit comments