From bdacf5b9afc689ed6d4d23aed2c2a7af0b8f3a66 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 30 Sep 2024 14:33:53 +0200 Subject: [PATCH] docker: reuse docker layers in dockerfile.alltools --- Dockerfile.alltools | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile.alltools b/Dockerfile.alltools index 681d4962af..44d5065af0 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -14,6 +14,13 @@ COPY go.sum /go-ethereum/ RUN cd /go-ethereum && go mod download ADD . /go-ethereum + +# This is not strictly necessary, but it matches the "Dockerfile" steps, thus +# makes it so that under certain circumstances, the docker layer can be cached, +# and the builder can jump to the next (build all) command, with the go cache fully loaded. +# +RUN cd /go-ethereum && go run build/ci.go install -static ./cmd/geth + RUN cd /go-ethereum && go run build/ci.go install -static # Pull all binaries into a second stage deploy alpine container