Skip to content

Commit

Permalink
chore: add cpu build of tabby to docker image. (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Feb 5, 2024
1 parent 9f2ed9a commit 125592b
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 125592b

Please sign in to comment.