Browse Source

adjust Dockerfile in order to fit the repo

Signed-off-by: Andreas Schmid <service@aaschmid.de>
pull/3/head
Andreas Schmid 5 years ago
parent
commit
b2cc45749e
  1. 6
      Dockerfile

6
Dockerfile

@ -4,8 +4,8 @@ LABEL maintainer="Max Schmitt <max@schmitt.mx>"
LABEL maintainer="Andreas Schmid <service@aaschid.de>"
LABEL description="FRITZ!Box Prometheus exporter"
RUN go get -v github.com/aaschmid/fritzbox_exporter && \
cd /go/src/github.com/aaschmid/fritzbox_exporter && \
RUN go get -v github.com/sberk24/fritzbox_exporter && \
cd /go/src/github.com/sberk24/fritzbox_exporter && \
CGO_ENABLED=0 go build -v -o /exporter
@ -13,7 +13,7 @@ FROM alpine
RUN apk update && apk add ca-certificates
COPY --from=build-env /go/src/github.com/aaschmid/fritzbox_exporter/metrics.json /metrics.json
COPY --from=build-env /go/src/github.com/sberk24/fritzbox_exporter/metrics.json /metrics.json
COPY --from=build-env /exporter /
EXPOSE 9133

Loading…
Cancel
Save