11FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
22
3- ENV SCCACHE=0.5.4
3+ ENV SCCACHE=0.10.0
44ENV RUSTC_WRAPPER=/usr/local/bin/sccache
55ENV PATH="/root/.cargo/bin:${PATH}"
66# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.85-bookworm`
@@ -49,7 +49,7 @@ WORKDIR /usr/src
4949
5050COPY --from=planner /usr/src/recipe.json recipe.json
5151
52- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
52+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
5353 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
5454 if [ $VERTEX = "true" ]; \
5555 then \
@@ -58,7 +58,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
5858 cargo chef cook --release --recipe-path recipe.json && sccache -s; \
5959 fi;
6060
61- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
61+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
6262 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
6363 if [ $VERTEX = "true" ]; \
6464 then \
@@ -67,7 +67,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
6767 CUDA_COMPUTE_CAP=75 cargo chef cook --release --features candle-cuda-turing --recipe-path recipe.json && sccache -s; \
6868 fi;
6969
70- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
70+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
7171 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
7272 if [ $VERTEX = "true" ]; \
7373 then \
@@ -76,7 +76,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
7676 CUDA_COMPUTE_CAP=80 cargo chef cook --release --features candle-cuda --recipe-path recipe.json && sccache -s; \
7777 fi;
7878
79- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
79+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
8080 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
8181 if [ $VERTEX = "true" ]; \
8282 then \
@@ -91,7 +91,7 @@ COPY router router
9191COPY Cargo.toml ./
9292COPY Cargo.lock ./
9393
94- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
94+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
9595 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
9696 if [ $VERTEX = "true" ]; \
9797 then \
@@ -102,7 +102,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
102102
103103RUN mv /usr/src/target/release/text-embeddings-router /usr/src/target/release/text-embeddings-router-75
104104
105- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
105+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
106106 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
107107 if [ $VERTEX = "true" ]; \
108108 then \
@@ -113,7 +113,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
113113
114114RUN mv /usr/src/target/release/text-embeddings-router /usr/src/target/release/text-embeddings-router-80
115115
116- RUN --mount=type=secret,id=actions_cache_url ,env=ACTIONS_CACHE_URL \
116+ RUN --mount=type=secret,id=actions_results_url ,env=ACTIONS_RESULTS_URL \
117117 --mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
118118 if [ $VERTEX = "true" ]; \
119119 then \
0 commit comments