From b352197e20e1715586b6a7fe6680c6f23b2073bf Mon Sep 17 00:00:00 2001 From: Fuyao Zhao Date: Sun, 31 Aug 2025 10:06:43 +0800 Subject: [PATCH] . --- Dockerfile.cross | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile.cross diff --git a/Dockerfile.cross b/Dockerfile.cross new file mode 100644 index 000000000..8fcaf5d7e --- /dev/null +++ b/Dockerfile.cross @@ -0,0 +1,15 @@ +# This image is meant to enable cross-architecture builds. +# It assumes the reth binary has already been compiled for `$TARGETPLATFORM` and is +# locatable in `./dist/bin/$TARGETARCH` +FROM --platform=$TARGETPLATFORM ubuntu:22.04 + +LABEL org.opencontainers.image.source=https://github.com/hl-archive-node/nanoreth +LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0" + +# Filled by docker buildx +ARG TARGETARCH + +COPY ./dist/bin/$TARGETARCH/reth-hl /usr/local/bin/reth-hl + +EXPOSE 9001 8545 8546 +ENTRYPOINT ["/usr/local/bin/reth"] \ No newline at end of file