We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321836a commit e6ed7d9Copy full SHA for e6ed7d9
Dockerfile
@@ -0,0 +1,26 @@
1
+FROM golang:1.23-alpine3.21 AS build
2
+
3
+ARG TARGETARCH=amd64
4
+ENV GOARCH=${TARGETARCH}
5
6
+WORKDIR /opt
7
8
+COPY . .
9
10
+RUN go build .
11
12
+FROM alpine:3.21
13
14
+RUN apk update && apk upgrade && apk add --no-cache curl
15
16
17
18
+COPY --from=build /opt/kvrocks_exporter kvrocks_exporter
19
20
+COPY --from=build /opt/LICENSE .
21
22
+EXPOSE 9121/tcp
23
24
+HEALTHCHECK --interval=30s --timeout=1s --start-period=5s --retries=3 CMD curl --fail -s http://localhost:9121/health | grep 'ok' || exit 1
25
26
+ENTRYPOINT [ "/kvrocks_exporter" ]
0 commit comments