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