From e4f91c0f800497959ebe092021987ff2ffd37044 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 16 Oct 2023 23:49:55 -0700 Subject: [PATCH] trimming down images --- dockerfiles/exporter | 2 +- dockerfiles/wownerod | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dockerfiles/exporter b/dockerfiles/exporter index 16464e5..c676fb3 100644 --- a/dockerfiles/exporter +++ b/dockerfiles/exporter @@ -1,4 +1,4 @@ -FROM golang:bullseye +FROM golang:bullseye as OG # Install exporter from Golang source RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master diff --git a/dockerfiles/wownerod b/dockerfiles/wownerod index 50b4b08..de84337 100644 --- a/dockerfiles/wownerod +++ b/dockerfiles/wownerod @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 as OG # Update system and install dependencies # Download Wownero binaries from Gitea @@ -33,6 +33,10 @@ RUN echo "${WOWNERO_HASH} ${WOWNERO_DL_FILE}" > ${WOWNERO_SUMS_FILE} \ && install ./tmp/wownero* /usr/local/bin/ \ && rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE} +# Copy to fresh Ubuntu image to reduce size +FROM ubuntu:22.04 +COPY --from=OG /usr/local/bin/wownerod /usr/local/bin/wownerod + WORKDIR /data EXPOSE 34567