# Shibarium bor execution client Dockerfile # Build from shibaone/bor source repository. # # Build args: # BOR_REPO - repository URL (default: https://github.com/shibaone/bor) # BOR_VERSION - version tag (default: v1.3.9-bone) # # The shibaone/bor repo has a working Dockerfile that builds via `make bor`. # ENTRYPOINT is `bor` # # This Dockerfile is used for building shibarium bor from source, # as shibaone does not publish pre-built Docker images to Docker Hub. ARG BOR_REPO=https://github.com/shibaone/bor ARG BOR_VERSION=v1.3.9-bone # Use a Go builder image to clone and build bor from source FROM golang:1.21-alpine AS builder RUN apk add --no-cache git make gcc musl-dev WORKDIR /src RUN git clone --depth 1 --branch ${BOR_VERSION} ${BOR_REPO} . RUN make bor # Final stage: copy the built binary FROM alpine:3.18 WORKDIR /usr/local/bin COPY --from=builder /src/build/bor /usr/local/bin/bor # Create data directory RUN mkdir -p /root/.bor WORKDIR /root/.bor ENTRYPOINT ["bor"]