mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 00:24:21 +01:00
21 lines
339 B
Docker
21 lines
339 B
Docker
FROM rust:1.88.0 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy the actual source code
|
|
COPY . .
|
|
|
|
# Build the CLI binary
|
|
RUN cargo build --release --package turso_cli
|
|
|
|
# Runtime stage
|
|
FROM rust:1.88.0-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy the built binary
|
|
COPY --from=builder /app/target/release/tursodb /usr/local/bin/
|
|
|
|
# Set the entrypoint
|
|
ENTRYPOINT ["tursodb"]
|