From 6f83f66cee6132ea8e55cbce952a01eec2a03cd7 Mon Sep 17 00:00:00 2001 From: sundy-li <543950155@qq.com> Date: Thu, 2 Jan 2025 17:54:22 +0800 Subject: [PATCH] chore(cli): fix --- .dockerignore | 1 + ttc/Dockerfile | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 64b9991a..ed53d7b5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ target/ frontend +ttc/Dockerfile diff --git a/ttc/Dockerfile b/ttc/Dockerfile index cf8fcaeb..17aef5eb 100644 --- a/ttc/Dockerfile +++ b/ttc/Dockerfile @@ -1,6 +1,4 @@ # Dockerfile - -# Use the official Rust image as the base image FROM rust as builder # Set the current working directory inside the container @@ -12,11 +10,7 @@ COPY . . # Build the application RUN cargo build --bin ttc-server --package databend-ttc --release -# Start a new stage with a minimal image -FROM debian:buster-slim - -# Copy the binary from the builder stage -COPY --from=builder /usr/src/target/release/ttc-server /usr/local/bin/ttc-server +RUN cp /usr/src/target/release/ttc-server /usr/local/bin/ttc-server # Set the startup command # docker run --net host datafuselabs/ttc-rust -P 9901 --databend_dsn databend://default:@127.0.0.1:8000