mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 00:24:21 +01:00
release and remove copies
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user