Add Dockerfile
This commit is contained in:
parent
3fbd0afc92
commit
164aed4c7f
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -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"]
|
Loading…
Reference in a new issue