Add exporter
This commit is contained in:
parent
c859db03f3
commit
225a85c82d
6 changed files with 318 additions and 1 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue