Add exporter

This commit is contained in:
Tomy Guichard 2021-11-13 19:36:28 +01:00
parent c859db03f3
commit 225a85c82d
6 changed files with 318 additions and 1 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
# Build stage
FROM golang:1.17-alpine AS build
WORKDIR /app
COPY . .
RUN go build -o /livebox-exporter
# Final image
FROM alpine:3.14
WORKDIR /
COPY --from=build /livebox-exporter /usr/local/bin/livebox-exporter
EXPOSE 8080
USER 10001:10001
ENTRYPOINT ["livebox-exporter"]