Skip to content

Commit

Permalink
build correctly in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Mar 24, 2024
1 parent b602cfc commit 1c140bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ RUN rm -rf rust/
COPY rust/ rust/
RUN touch rust/worker/src/bin/query_service.rs
RUN if [ "$RELEASE_MODE" = "1" ]; then cargo build --release; else cargo build; fi
RUN if [ "$RELEASE_MODE" = "1" ]; then cp target/release/query_service .; else cp target/debug/query_service .; fi
RUN if [ "$RELEASE_MODE" = "1" ]; then mv target/release/query_service .; else mv target/debug/query_service .; fi

FROM debian:bookworm-slim

COPY --from=builder /chroma/target/debug/query_service .
COPY --from=builder /chroma/query_service .
COPY --from=builder /chroma/rust/worker/chroma_config.yaml .
RUN apt-get update && apt-get install -y libssl-dev

Expand Down

0 comments on commit 1c140bc

Please sign in to comment.