Initial release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-06-20 17:09:13 +01:00
parent d9d00cccc5
commit 2ffa757a67
6 changed files with 601 additions and 28 deletions

View File

@@ -0,0 +1,11 @@
FROM golang:1.17-alpine AS builder
WORKDIR /app/
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
WORKDIR /app/
COPY --from=builder /app/speedtest-exporter /app/speedtest-exporter
ENTRYPOINT ["/app/speedtest-exporter"]