From 20669d87d392da28eeee9e2d78ddfc5301585ec2 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 5 Feb 2024 10:40:53 -0800 Subject: [PATCH] chore: add cpu build of tabby to docker image. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9ca69a1fab67..fb182d374e8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \