A prometheus exporter for Speedtest.net results
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
342 B

FROM golang:1.17-alpine AS builder
ADD go.mod go.sum ./
RUN go mod download
ADD . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o speedtest-exporter main.go
FROM golang:1.17-alpine
COPY --from=builder /app/speedtest-exporter /app/speedtest-exporter
ENTRYPOINT ["/app/speedtest-exporter"]