Files
ethereum-rpc-docker/tac/tacchaind.Dockerfile
Claude Agent 73b65dbbc9 tac: re-declare ARG VERSION in tacchaind go-builder stage
Pre-FROM ARG VERSION is not visible inside build stages; compose passes
VERSION as a build arg but git checkout expanded empty without a stage-level
re-declaration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 13:22:14 +00:00

39 lines
880 B
Docker

# tacchaind — source build mirroring upstream TacBuild/tacchain Dockerfile (v1.6.0).
ARG VERSION=v1.6.0
FROM golang:1.23.8-alpine3.21 AS go-builder
ARG VERSION
RUN apk add --no-cache \
ca-certificates \
build-base \
git \
libusb-dev \
linux-headers \
eudev-dev
WORKDIR /code
RUN git clone https://github.com/TacBuild/tacchain.git /code && \
cd /code && \
git checkout "${VERSION}" && \
LEDGER_ENABLED=true make build
FROM alpine:3.21
RUN apk upgrade --no-cache && \
apk add --no-cache \
ca-certificates \
libusb
COPY --from=go-builder /code/build/tacchaind /usr/bin/tacchaind
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
WORKDIR /opt
EXPOSE 1317 26656 26657
ENTRYPOINT ["init.sh"]