prometheus-exporter/Dockerfile

18 lines
263 B
Docker

FROM rust:1.75 AS builder
WORKDIR /app
COPY . .
RUN cargo build --release
FROM debian:bullseye-slim
WORKDIR /app
# RUN sudo apt update
# RUN sudo apt install libc6
COPY --from=builder /app/target/release/exporter /app/server
EXPOSE 9100
CMD ["/app/server"]