From 4e683e1a34cfa3dc04db8dfe4d3aff699232fe65 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Tue, 3 May 2022 17:00:52 +0100 Subject: [PATCH] Revert "Speed up docker image build by use layer cache (#4038)" (#4054) This reverts commit e758fb800befc36185b49f7ab8c21223ff476d8c. --- .github/workflows/ci.yml | 7 ------- Dockerfile | 7 ------- 2 files changed, 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cc732218..76ab6cf18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,11 +76,4 @@ jobs: steps: - uses: actions/checkout@v3 - run: git submodule update --init --recursive --force - - # In this step, this action saves a list of existing images, - # the cache is created without them in the post run. - # It also restores the cache if it exists. - - uses: satackey/action-docker-layer-caching@v0.0.11 - continue-on-error: false - - run: docker build . diff --git a/Dockerfile b/Dockerfile index 52f6848a8..a9836e39f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,6 @@ FROM docker.io/library/golang:1.18-alpine3.15 AS builder RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++ WORKDIR /app - -# Get dependencies - will also be cached if we won't change go.mod/go.sum -COPY go.mod . -COPY go.sum . -RUN go mod download - - ADD . . RUN make erigon rpcdaemon integration sentry txpool downloader hack observer db-tools