Initial commit

This commit is contained in:
Jan Lošťák
2024-05-27 21:27:07 +02:00
commit a1ab163804
22 changed files with 2920 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM golang:1.22-alpine AS build
WORKDIR /build
COPY . .
RUN go mod download
RUN go build main.go
FROM alpine:3.18
WORKDIR /opt
COPY --from=build /build/main ./pve-exporter
COPY --from=build /build/config.yaml ./config.yaml
RUN chmod +x ./pve-exporter
EXPOSE 9090
CMD [ "./pve-exporter" ]