From 164aed4c7fa644cde591a277f5a772165ccafde2 Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Tue, 1 Feb 2022 17:01:31 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9a5f49c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM rust:buster as builder + +RUN apt update && apt install -y libssl-dev + +WORKDIR /usr/src/droneconf + +COPY Cargo.toml ./ +COPY src/ src/ + +RUN cargo build --release + +FROM debian:buster + +COPY --from=builder /usr/src/droneconf/target/release/droneconf /usr/bin + +RUN apt update && apt install -y libssl1.1 dumb-init + +VOLUME ["/data"] + +ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/bin/droneconf", "--config", "/data/config.toml"] \ No newline at end of file