@@ -43,7 +43,7 @@ COPY --from=planner /usr/src/recipe.json recipe.json
43
43
44
44
RUN --mount=type=secret,id=actions_results_url,env=ACTIONS_RESULTS_URL \
45
45
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
46
- cargo chef cook --release --features ort,candle,mkl --no-default-features --recipe-path recipe.json && sccache -s
46
+ cargo chef cook --release --features ort,candle,mkl,static-linking --no-default-features --recipe-path recipe.json && sccache -s
47
47
48
48
COPY backends backends
49
49
COPY core core
@@ -55,7 +55,7 @@ FROM builder AS http-builder
55
55
56
56
RUN --mount=type=secret,id=actions_results_url,env=ACTIONS_RESULTS_URL \
57
57
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
58
- cargo build --release --bin text-embeddings-router --features ort,candle,mkl,http --no-default-features && sccache -s
58
+ cargo build --release --bin text-embeddings-router --features ort,candle,mkl,static-linking, http --no-default-features && sccache -s
59
59
60
60
FROM builder AS grpc-builder
61
61
@@ -69,7 +69,7 @@ COPY proto proto
69
69
70
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
- cargo build --release --bin text-embeddings-router --features ort,candle,mkl,grpc --no-default-features && sccache -s
72
+ cargo build --release --bin text-embeddings-router --features ort,candle,mkl,static-linking, grpc --no-default-features && sccache -s
73
73
74
74
FROM debian:bookworm-slim AS base
75
75
0 commit comments