From acdda27bc70af2c2857d9dbc5ef01efad5dd5379 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 14 Oct 2023 12:32:33 -0700 Subject: [PATCH] slim exporter image size --- dockerfiles/exporter | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockerfiles/exporter b/dockerfiles/exporter index 240aa0d..16464e5 100644 --- a/dockerfiles/exporter +++ b/dockerfiles/exporter @@ -3,4 +3,8 @@ FROM golang:bullseye # Install exporter from Golang source RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master +# Copy installed binary to fresh Ubuntu image +FROM ubuntu:22.04 +COPY --from=OG /go/bin/monero-exporter /usr/local/bin/monero-exporter + ENTRYPOINT [ "monero-exporter" ] \ No newline at end of file