reducing exporter size

v0.18.3.1
lza_menace 1 year ago
parent 5bd91c6103
commit 6475ff6c99

@ -1,9 +1,10 @@
FROM golang:bullseye FROM golang:bullseye as OG
# Install exporter from Golang source # Install exporter from Github
RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master
# Install GeoLite database # Copy installed binary to fresh Ubuntu image
RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -O /geoip.mmdb FROM ubuntu:22.04
COPY --from=OG /go/bin/monero-exporter /usr/local/bin/monero-exporter
ENTRYPOINT [ "monero-exporter", "--geoip-filepath", "/geoip.mmdb" ] ENTRYPOINT [ "monero-exporter" ]

Loading…
Cancel
Save