Skip to content

Commit

Permalink
reduce image size
Browse files Browse the repository at this point in the history
  • Loading branch information
marriva committed Dec 28, 2023
1 parent 8966819 commit cf61b39
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions .promu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build:
flags: -a -tags netgo
ldflags: |
-s
-w
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
Expand Down
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ RUN git clone --single-branch --branch $CHOP_VERSION https://github.com/altinity
FROM debian:bullseye-slim
LABEL maintainer="Vasily Maryutenkov <[email protected]>"

RUN DEBIAN_FRONTEND=noninteractive; apt-get update \
&& apt-get install -qy --no-install-recommends \
ca-certificates \
curl \
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*

COPY --from=builder /src/clickhouse-exporter/build/clickhouse-exporter /clickhouse-exporter

EXPOSE 8888/tcp
Expand Down
7 changes: 0 additions & 7 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,3 @@ import:
add: /src/clickhouse-exporter/build/clickhouse-exporter
to: /clickhouse-exporter
before: install
shell:
beforeInstall: |
DEBIAN_FRONTEND=noninteractive; apt-get update \
&& apt-get install -qy --no-install-recommends \
ca-certificates \
curl
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

0 comments on commit cf61b39

Please sign in to comment.