Skip to content

Commit

Permalink
chore(cli): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 2, 2025
1 parent 84d5537 commit 6f83f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
frontend
ttc/Dockerfile
8 changes: 1 addition & 7 deletions ttc/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6f83f66

Please sign in to comment.