diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4f76a1..f602f0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 diff --git a/Dockerfile b/Dockerfile index 67b7b87..cd3ba2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:alpine as builder +FROM golang:1.18-alpine3.17 as builder WORKDIR /go/src/app COPY . . RUN CGO_ENABLED=0 go install -ldflags '-extldflags "-static"' -FROM scratch +FROM alpine:3.17 COPY --from=builder /go/bin/near-exporter /near-exporter COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ENTRYPOINT ["/near-exporter"]