release and remove copies

This commit is contained in:
Pere Diaz Bou
2025-07-30 11:45:24 +02:00
parent 9a50ab1232
commit baa424bff6

View File

@@ -2,18 +2,11 @@ FROM rust:1.88.0 as builder
WORKDIR /app
# Copy workspace files for dependency resolution
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
COPY cli/Cargo.toml ./cli/
COPY core/Cargo.toml ./core/
COPY extensions/completion/Cargo.toml ./extensions/completion/
COPY macros/Cargo.toml ./macros/
# Copy the actual source code
COPY . .
# Build the CLI binary
RUN cargo build --package turso_cli
RUN cargo build --release --package turso_cli
# Runtime stage
FROM rust:1.88.0-slim
@@ -21,7 +14,7 @@ FROM rust:1.88.0-slim
WORKDIR /app
# Copy the built binary
COPY --from=builder /app/target/debug/tursodb /usr/local/bin/
COPY --from=builder /app/target/release/tursodb /usr/local/bin/
# Set the entrypoint
ENTRYPOINT ["tursodb"]