Skip to content

Commit 2c50a0e

Browse files
authored
fix: enable http feature in http-builder (#98)
1 parent 8067a80 commit 2c50a0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ COPY Cargo.lock ./
5353

5454
FROM builder as http-builder
5555

56-
RUN cargo build --release --bin text-embeddings-router -F candle -F mkl-dynamic --no-default-features && sccache -s
56+
RUN cargo build --release --bin text-embeddings-router -F candle -F mkl-dynamic -F http --no-default-features && sccache -s
5757

5858
FROM builder as grpc-builder
5959

@@ -106,4 +106,4 @@ FROM base
106106
COPY --from=http-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
107107

108108
ENTRYPOINT ["text-embeddings-router"]
109-
CMD ["--json-output"]
109+
CMD ["--json-output"]

Dockerfile-cuda

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ FROM builder as http-builder
7474

7575
RUN if [ ${CUDA_COMPUTE_CAP} -ge 75 -a ${CUDA_COMPUTE_CAP} -lt 80 ]; \
7676
then \
77-
cargo build --release --bin text-embeddings-router -F candle-cuda-turing -F static-linking --no-default-features && sccache -s; \
77+
cargo build --release --bin text-embeddings-router -F candle-cuda-turing -F static-linking -F http --no-default-features && sccache -s; \
7878
else \
79-
cargo build --release --bin text-embeddings-router -F candle-cuda -F static-linking --no-default-features && sccache -s; \
79+
cargo build --release --bin text-embeddings-router -F candle-cuda -F static-linking -F http --no-default-features && sccache -s; \
8080
fi;
8181

8282
FROM builder as grpc-builder
@@ -120,4 +120,4 @@ FROM base
120120
COPY --from=http-builder /usr/src/target/release/text-embeddings-router /usr/local/bin/text-embeddings-router
121121

122122
ENTRYPOINT ["text-embeddings-router"]
123-
CMD ["--json-output"]
123+
CMD ["--json-output"]

0 commit comments

Comments
 (0)