@@ -43,7 +43,7 @@ COPY --from=planner /usr/src/recipe.json recipe.json
4343
4444RUN --mount=type=secret,id=actions_results_url,env=ACTIONS_RESULTS_URL \
4545 --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
4747
4848COPY backends backends
4949COPY core core
@@ -55,7 +55,7 @@ FROM builder AS http-builder
5555
5656RUN --mount=type=secret,id=actions_results_url,env=ACTIONS_RESULTS_URL \
5757 --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
5959
6060FROM builder AS grpc-builder
6161
@@ -69,7 +69,7 @@ COPY proto proto
6969
7070RUN --mount=type=secret,id=actions_results_url,env=ACTIONS_RESULTS_URL \
7171 --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
7373
7474FROM debian:bookworm-slim AS base
7575
0 commit comments