We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b773c71 commit 7c23c6dCopy full SHA for 7c23c6d
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM golang:1.21-alpine AS builder
+FROM golang:1.23-alpine AS builder
2
3
RUN apk add git bash
4
@@ -9,7 +9,7 @@ COPY ./ /src
9
10
# build
11
WORKDIR /src
12
-RUN GOGC=off go build -mod=vendor -v -o /sql_exporter .
+RUN GOGC=off go build -mod=vendor -ldflags="-s -w" -v -o /sql_exporter .
13
14
# multistage
15
FROM alpine:3.21.3
0 commit comments