1
1
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04 AS base-builder
2
2
3
- ENV SCCACHE=0.5.4
3
+ ENV SCCACHE=0.10.0
4
4
ENV RUSTC_WRAPPER=/usr/local/bin/sccache
5
5
ENV PATH="/root/.cargo/bin:${PATH}"
6
6
# aligned with `cargo-chef` version in `lukemathwalker/cargo-chef:latest-rust-1.85-bookworm`
@@ -49,7 +49,7 @@ WORKDIR /usr/src
49
49
50
50
COPY --from=planner /usr/src/recipe.json recipe.json
51
51
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 \
53
53
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
54
54
if [ $VERTEX = "true" ]; \
55
55
then \
@@ -58,7 +58,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
58
58
cargo chef cook --release --recipe-path recipe.json && sccache -s; \
59
59
fi;
60
60
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 \
62
62
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
63
63
if [ $VERTEX = "true" ]; \
64
64
then \
@@ -67,7 +67,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
67
67
CUDA_COMPUTE_CAP=75 cargo chef cook --release --features candle-cuda-turing --recipe-path recipe.json && sccache -s; \
68
68
fi;
69
69
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 \
71
71
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
72
72
if [ $VERTEX = "true" ]; \
73
73
then \
@@ -76,7 +76,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
76
76
CUDA_COMPUTE_CAP=80 cargo chef cook --release --features candle-cuda --recipe-path recipe.json && sccache -s; \
77
77
fi;
78
78
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 \
80
80
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
81
81
if [ $VERTEX = "true" ]; \
82
82
then \
@@ -91,7 +91,7 @@ COPY router router
91
91
COPY Cargo.toml ./
92
92
COPY Cargo.lock ./
93
93
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 \
95
95
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
96
96
if [ $VERTEX = "true" ]; \
97
97
then \
@@ -102,7 +102,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
102
102
103
103
RUN mv /usr/src/target/release/text-embeddings-router /usr/src/target/release/text-embeddings-router-75
104
104
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 \
106
106
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
107
107
if [ $VERTEX = "true" ]; \
108
108
then \
@@ -113,7 +113,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
113
113
114
114
RUN mv /usr/src/target/release/text-embeddings-router /usr/src/target/release/text-embeddings-router-80
115
115
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 \
117
117
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
118
118
if [ $VERTEX = "true" ]; \
119
119
then \
0 commit comments