mirror of
https://github.com/zooai/evm.git
synced 2026-10-30 14:50:07 +00:00
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]>
20 lines
648 B
Docker
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"]
|