Skip to content

Commit

Permalink
chore: add cpu build of tabby to docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Feb 5, 2024
1 parent eb90722 commit 20669d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo build --features cuda,prod-db --release --package tabby && \
cp target/release/tabby /opt/tabby/bin/

RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/root/workspace/target \
cargo build --features prod-db --release --package tabby && \
cp target/release/tabby /opt/tabby/bin/tabby-cpu

FROM ${BASE_CUDA_RUN_CONTAINER} as runtime

RUN apt-get update && \
Expand Down

0 comments on commit 20669d8

Please sign in to comment.