trimming down images

master
lza_menace 1 year ago
parent acdda27bc7
commit e4f91c0f80

@ -1,4 +1,4 @@
FROM golang:bullseye FROM golang:bullseye as OG
# Install exporter from Golang source # Install exporter from Golang source
RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master

@ -1,4 +1,4 @@
FROM ubuntu:20.04 FROM ubuntu:22.04 as OG
# Update system and install dependencies # Update system and install dependencies
# Download Wownero binaries from Gitea # 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/ \ && install ./tmp/wownero* /usr/local/bin/ \
&& rm -rf ./tmp ${WOWNERO_SUMS_FILE} ${WOWNERO_DL_FILE} && 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 WORKDIR /data
EXPOSE 34567 EXPOSE 34567

Loading…
Cancel
Save