Skip to content

Commit

Permalink
speed up docker image build by use layer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Apr 30, 2022
1 parent 93ab7f5 commit de2d30b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# syntax=docker/dockerfile:1
FROM docker.io/library/golang:1.18-alpine3.15 AS builder

WORKDIR /app

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

RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++

WORKDIR /app
ADD . .

RUN make erigon rpcdaemon integration sentry txpool downloader hack observer db-tools
Expand Down

0 comments on commit de2d30b

Please sign in to comment.