This commit is contained in:
Fuyao Zhao
2025-08-31 10:06:43 +08:00
parent c7ed9fc8f1
commit b352197e20

15
Dockerfile.cross Normal file
View File

@ -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"]