mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
release and remove copies
This commit is contained in:
@@ -2,18 +2,11 @@ FROM rust:1.88.0 as builder
|
|||||||
|
|
||||||
WORKDIR /app
|
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 the actual source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build the CLI binary
|
# Build the CLI binary
|
||||||
RUN cargo build --package turso_cli
|
RUN cargo build --release --package turso_cli
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM rust:1.88.0-slim
|
FROM rust:1.88.0-slim
|
||||||
@@ -21,7 +14,7 @@ FROM rust:1.88.0-slim
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the built binary
|
# 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
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["tursodb"]
|
ENTRYPOINT ["tursodb"]
|
||||||
|
|||||||
Reference in New Issue
Block a user