Skip to content

Commit

Permalink
fix Dockerfile and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Jun 3, 2023
1 parent a5db372 commit 403366e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM golang:1.16 AS BUILD
FROM golang:1.20 AS BUILDER

LABEL maintainer="Roman Tkalenko"

COPY . /go/src/github.com/ClickHouse/clickhouse_exporter

WORKDIR /go/src/github.com/ClickHouse/clickhouse_exporter

RUN make init && make
RUN make init
RUN make all

FROM alpine:latest

FROM frolvlad/alpine-glibc:alpine-3.13

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

ENTRYPOINT ["/usr/local/bin/clickhouse_exporter"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: build test

init:
go get -u github.com/AlekSi/gocoverutil
go install github.com/AlekSi/gocoverutil@latest

build:
go install -v
Expand Down

0 comments on commit 403366e

Please sign in to comment.