Files
evm/Dockerfile
zeekayandHanzo Dev dc8e517c73 build: Go builder base to 1.26.5, GOTOOLCHAIN=auto
Currency bump. No go.mod directive changes.

The golang images ship GOTOOLCHAIN=local, so the moment a go.mod
directive moves past the image's Go version the build hard-fails
mid-stage. GOTOOLCHAIN=auto lets the toolchain resolve instead; the
pinned base stays the hermetic fast path.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-01 16:34:23 -07:00

20 lines
648 B
Docker

FROM golang:1.26.5-bookworm AS builder
ENV GOTOOLCHAIN=auto
ARG GITHUB_TOKEN
ARG GITHUB_ACTOR
WORKDIR /build
ENV GOPRIVATE=github.com/luxfi/*
ENV GONOSUMDB=github.com/luxfi/*
ENV GONOSUMCHECK=github.com/luxfi/*
RUN git config --global url."https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
COPY go.mod ./
RUN go mod download || true
COPY . .
ENV CGO_ENABLED=0
RUN rm -f go.sum && go mod tidy && go build -o zoo-evm .
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/zoo-evm /usr/local/bin/zoo-evm
ENTRYPOINT ["zoo-evm"]