Files
ethereum-rpc-docker/cronos/cometbft.Dockerfile

26 lines
1.1 KiB
Docker

# cronosd — public GitHub release tarball (ghcr.io/crypto-org-chain/cronos returns 403
# on anonymous pulls). Mirror zero-gravity/zerog.Dockerfile: alpine base + tarball extract.
ARG CRONOS_CRONOS_VERSION=v1.7.8
FROM alpine:3.21
RUN apk add --no-cache ca-certificates curl jq
ARG CRONOS_CRONOS_VERSION
# Version may carry a "-testnet" suffix (e.g. v1.7.8-testnet): the release TAG is the
# base version, the ASSET keeps the suffix (testnet builds use tcrc bech32 prefixes -
# a mainnet binary cannot parse testnet validator addresses).
RUN _ver="${CRONOS_CRONOS_VERSION#v}" && \
_tag="v${_ver%-testnet}" && \
curl -fsSL "https://github.com/crypto-org-chain/cronos/releases/download/${_tag}/cronos_${_ver}_Linux_x86_64.tar.gz" \
-o /tmp/cronos.tar.gz && \
tar -xzf /tmp/cronos.tar.gz -C /tmp && \
install -m 755 /tmp/bin/cronosd /usr/local/bin/cronosd && \
rm -rf /tmp/cronos.tar.gz /tmp/bin
COPY ./scripts/cometbft-common.sh /usr/local/bin/cometbft-common.sh
COPY ./scripts/init.sh /usr/local/bin/init.sh
RUN chmod +x /usr/local/bin/init.sh /usr/local/bin/cometbft-common.sh
ENTRYPOINT ["init.sh"]