mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
18 lines
662 B
Docker
18 lines
662 B
Docker
# 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"
|
|
|
|
# Install root certificates for aws sdk to work
|
|
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates
|
|
|
|
# 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"] |