mirror of
https://github.com/sberk42/fritzbox_exporter.git
synced 2026-05-16 22:37:24 +00:00
13 lines
435 B
Docker
13 lines
435 B
Docker
FROM golang:rc-alpine3.13 AS builder
|
|
RUN go get github.com/sberk42/fritzbox_exporter/
|
|
|
|
FROM alpine:latest
|
|
ENV USERNAME="username"
|
|
ENV PASSWORD="password"
|
|
ENV GATEWAY_URL="http://fritz.box:49000"
|
|
WORKDIR /root/
|
|
COPY --from=builder /go/bin/fritzbox_exporter .
|
|
COPY metrics.json metrics-lua.json ./
|
|
EXPOSE 9042
|
|
ENTRYPOINT ./fritzbox_exporter -gateway-url ${GWURL} -password ${PASSWORD} -username ${USERNAME} -listen-address 0.0.0.0:9042
|