Skip to content

Commit

Permalink
fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Nov 8, 2023
1 parent 5c07d59 commit 73705de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20 AS BUILDER
FROM golang:1.21 AS BUILDER

LABEL maintainer="Roman Tkalenko"

Expand All @@ -12,7 +12,7 @@ RUN make all
FROM alpine:latest

COPY --from=BUILDER /go/bin/clickhouse_exporter /usr/local/bin/clickhouse_exporter
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
RUN apk update && apk add ca-certificates libc6-compat && rm -rf /var/cache/apk/*

ENTRYPOINT ["/usr/local/bin/clickhouse_exporter"]
CMD ["-scrape_uri=http://localhost:8123"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ init:

build:
go install -v
go build
go build -ldflags "-linkmode=external -extldflags '-static' -extldflags '-static'" .

test:
go test -v -race
Expand Down

0 comments on commit 73705de

Please sign in to comment.