16 lines
299 B
Docker
16 lines
299 B
Docker
|
FROM rust:latest AS builder
|
||
|
|
||
|
WORKDIR /root
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN cargo build --release
|
||
|
|
||
|
FROM debian:stable-slim
|
||
|
|
||
|
RUN apt update && apt install -y ca-certificates openssl && apt clean
|
||
|
|
||
|
COPY --from=builder /root/target/release/lb-influx-connector /root/lb-influx-connector
|
||
|
|
||
|
CMD ["/root/lb-influx-connector"]
|