From 13ed98f9cdd42a1ceb577fc5d85e0aad98abe270 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Wed, 9 Aug 2023 01:42:19 +0000 Subject: [PATCH] Geth builds with Go 1.21 --- geth/Dockerfile.source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geth/Dockerfile.source b/geth/Dockerfile.source index f9b1c879..1f01427b 100644 --- a/geth/Dockerfile.source +++ b/geth/Dockerfile.source @@ -1,5 +1,5 @@ # Build Geth in a stock Go build container -FROM golang:1.20-alpine as builder +FROM golang:1.21-alpine as builder # Unused, this is here to avoid build time complaints ARG DOCKER_TAG @@ -11,7 +11,7 @@ RUN apk update && apk add --no-cache make gcc musl-dev linux-headers git bash WORKDIR /src RUN bash -c "git clone https://github.com/ethereum/go-ethereum.git && cd go-ethereum && git config advice.detachedHead false && git fetch --all --tags && \ if [[ ${BUILD_TARGET} =~ pr-.+ ]]; then git fetch origin pull/$(echo ${BUILD_TARGET} | cut -d '-' -f 2)/head:geth-pr; git checkout geth-pr; else git checkout ${BUILD_TARGET}; fi && \ -make all" +go run build/ci.go install -static" # Pull all binaries into a second stage deploy container FROM alpine:3