Skip to content

Commit

Permalink
ci: speed up docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Apr 30, 2022
1 parent f94e23c commit 5bfa10d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ ARG BUILDNUM=""
# Build Geth in a stock Go builder container
FROM golang:1.18-alpine as builder

# Get dependancies - will also be cached if we won't change go.mod/go.sum
COPY go.mod /go-ethereum/
COPY go.sum /go-ethereum/
RUN cd /go-ethereum && go mod download

RUN apk add --no-cache gcc musl-dev linux-headers git

ADD . /go-ethereum
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.alltools
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ ARG BUILDNUM=""
# Build Geth in a stock Go builder container
FROM golang:1.18-alpine as builder

# Get dependancies - will also be cached if we won't change go.mod/go.sum
COPY go.mod /go-ethereum/
COPY go.sum /go-ethereum/
RUN cd /go-ethereum && go mod download

RUN apk add --no-cache gcc musl-dev linux-headers git

ADD . /go-ethereum
Expand Down

0 comments on commit 5bfa10d

Please sign in to comment.