mirror of
https://github.com/chylex/Apache-Prometheus-Exporter.git
synced 2024-12-21 22:42:49 +01:00
13 lines
271 B
Docker
13 lines
271 B
Docker
FROM rust:alpine as builder
|
|
|
|
RUN apk add --no-cache musl-dev
|
|
|
|
WORKDIR /app/
|
|
COPY . .
|
|
|
|
RUN cargo install --path .
|
|
|
|
FROM alpine
|
|
COPY --from=builder /usr/local/cargo/bin/apache_prometheus_exporter /usr/local/bin/apache_prometheus_exporter
|
|
CMD ["apache_prometheus_exporter"]
|