-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# rust:1.93-bookworm (matches upstream quickwit MSRV)
FROM rust@sha256:d0a4aa3ca2e1088ac0c81690914a0d810f2eee188197034edf366ed010a2b382 AS builder
RUN apt-get update && apt-get install -y protobuf-compiler cmake && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY Cargo.toml Cargo.toml
COPY src/ src/
COPY migrations/ migrations/
# quickwit crates require tokio_unstable for runtime metrics APIs
ENV RUSTFLAGS="--cfg tokio_unstable"
RUN cargo build --release
# debian:trixie-slim
FROM debian@sha256:f6e2cfac5cf956ea044b4bd75e6397b4372ad88fe00908045e9a0d21712ae3ba
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/quickwit-metastore-migration /usr/local/bin/
ENTRYPOINT ["quickwit-metastore-migration"]