Files
pve-exporter/Dockerfile
2026-03-27 18:23:42 +01:00

16 lines
300 B
Docker

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.example.yaml ./config.yaml
RUN chmod +x ./pve-exporter
EXPOSE 9090
CMD [ "./pve-exporter" ]