Files
ethereum-rpc-docker/shibarium/bor.Dockerfile
rob ee21a0245e shibarium: build bor + heimdall from source (no published images)
shibaone ships no docker images for the bone fork — only source + .deb config
packages — so both Dockerfiles must clone+build, not FROM a (nonexistent) image.

- bor.Dockerfile: clone shibaone/bor@${BOR_VERSION}, make bor, cp build/bin/bor
  (was: alpine + wrong /src/build/bor path). golang:1.22.1 like upstream.
- cometbft.Dockerfile: clone shibaone/heimdall@${CL_VERSION}, make install
  (was: FROM shibaone/heimdall:v1.0.7-bone — that tag does not exist on any
  registry), then layer the CometBFT init entrypoint.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 11:46:00 +00:00

34 lines
1.2 KiB
Docker

# Shibarium bor execution client — BUILT FROM SOURCE.
#
# shibaone publishes NO bor docker image (and vanilla 0xpolygon/bor is the WRONG
# fork — Polygon, chainId 137). We mirror the upstream shibaone/bor Dockerfile
# (`make bor` -> build/bin/bor) but clone the pinned tag so the image is
# self-contained. Running `bor server --chain=shibarium` self-configures the
# shibarium genesis (builder/files/genesis-shibarium.json, chainId 109) and the
# bootnodes bundled in builder/files/config.toml.
#
# Build args:
# BOR_REPO - bor source repo (default: https://github.com/shibaone/bor)
# BOR_VERSION - bor version tag (passed by the template, e.g. v1.3.9-bone)
ARG BOR_REPO=https://github.com/shibaone/bor
ARG BOR_VERSION=v1.3.9-bone
FROM golang:1.22.1
ARG BOR_REPO
ARG BOR_VERSION
RUN apt-get update -y && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends build-essential git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/lib/bor
RUN git clone --depth 1 --branch ${BOR_VERSION} ${BOR_REPO} . \
&& make bor \
&& cp build/bin/bor /usr/bin/
RUN mkdir -p /root/.bor
EXPOSE 8545 8546 8547 30303 30303/udp
ENTRYPOINT ["bor"]