Updated Go version
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -1,11 +1,11 @@
|
||||
FROM golang:1.17-alpine AS builder
|
||||
FROM golang:1.27-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
|
||||
FROM golang:1.27-alpine
|
||||
WORKDIR /app/
|
||||
COPY --from=builder /app/speedtest-exporter /app/speedtest-exporter
|
||||
ENTRYPOINT ["/app/speedtest-exporter"]
|
||||
Reference in new issue
Block a user