docker: reuse docker layers in dockerfile.alltools

This commit is contained in:
Martin Holst Swende 2024-09-30 14:33:53 +02:00
parent 76280f5957
commit bdacf5b9af
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -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