From 91fb3a304c2ffd3e7ca5eb4d520e9566de33cd84 Mon Sep 17 00:00:00 2001 From: yorickdowne <71337066+yorickdowne@users.noreply.github.com> Date: Wed, 9 Aug 2023 02:45:19 +0100 Subject: [PATCH] Geth builds with Go 1.21 (#1473) --- 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