Skip to content

Commit adc5ef9

Browse files
committed
We need libfakeintel for warnings
1 parent 3258d8d commit adc5ef9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile-arm64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ ARG ACTIONS_CACHE_URL
2828
ARG ACTIONS_RUNTIME_TOKEN
2929
ARG SCCACHE_GHA_ENABLED
3030

31+
RUN echo "int mkl_serv_intel_cpu_true() {return 1;}" > fakeintel.c && \
32+
gcc -shared -fPIC -o libfakeintel.so fakeintel.c
33+
3134
COPY --from=planner /usr/src/recipe.json recipe.json
3235

3336
RUN cargo chef cook --release --features candle --no-default-features --recipe-path recipe.json && sccache -s
@@ -70,6 +73,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
7073
curl \
7174
&& rm -rf /var/lib/apt/lists/*
7275

76+
COPY --from=builder /usr/src/libfakeintel.so /usr/local/libfakeintel.so
77+
7378
FROM base as grpc
7479

7580
COPY --from=grpc-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router

0 commit comments

Comments
 (0)