forked from quickwit-oss/mrecordlog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (19 loc) · 816 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# --- Builder
FROM rust:bullseye AS bin-builder
COPY . /mrecordlog
WORKDIR /mrecordlog/mrecordlog_cli
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/mrecordlog/target \
cargo build --release --bin mrecordlog && \
ls /mrecordlog/target/release && \
mkdir -p /quickwit/bin && \
mv /mrecordlog/target/release/mrecordlog /quickwit/bin/mrecordlog
# --- ACTUAL image.
FROM debian:bullseye-slim AS quickwit
LABEL org.opencontainers.image.title="Quickwit MRecordlog utils CLI"
LABEL maintainer="Quickwit, Inc. <[email protected]>"
LABEL org.opencontainers.image.vendor="Quickwit, Inc."
LABEL org.opencontainers.image.licenses="AGPL-3.0"
WORKDIR /quickwit
COPY --from=bin-builder /quickwit/bin/mrecordlog /usr/local/bin/mrecordlog
ENTRYPOINT ["mrecordlog"]