2023-06-10 22:46:52 -05:00
|
|
|
# builder
|
2023-12-07 22:38:21 -06:00
|
|
|
FROM rust:1.74 as builder
|
2023-06-10 00:07:03 -05:00
|
|
|
|
|
|
|
WORKDIR /usr/src/breeze
|
|
|
|
COPY . .
|
2023-06-10 22:46:52 -05:00
|
|
|
RUN cargo install --path .
|
2023-06-10 00:07:03 -05:00
|
|
|
|
2023-06-10 22:46:52 -05:00
|
|
|
# runner
|
2023-12-08 13:20:35 -06:00
|
|
|
FROM debian:bookworm-slim
|
2023-06-10 22:46:52 -05:00
|
|
|
|
|
|
|
RUN apt-get update && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2023-06-10 00:07:03 -05:00
|
|
|
COPY --from=builder /usr/local/cargo/bin/breeze /usr/local/bin/breeze
|
|
|
|
|
2023-12-08 13:20:35 -06:00
|
|
|
CMD [ "breeze", "--config", "/etc/breeze.toml" ]
|