From a114c5d4b6b1cde20ffee28f36708a82c9ff5578 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 13 Aug 2023 07:45:55 +0200 Subject: [PATCH] build that thing because permissions --- lukso/erigon/Dockerfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/lukso/erigon/Dockerfile b/lukso/erigon/Dockerfile index d4f82a83..c5b9d121 100644 --- a/lukso/erigon/Dockerfile +++ b/lukso/erigon/Dockerfile @@ -1,4 +1,20 @@ -FROM thorax/erigon:v2.45.1 +FROM docker.io/library/golang:1.20-alpine3.17 AS builder +RUN apk add --no-cache make g++ gcc musl-dev linux-headers git +ARG ERIGON_VERSION=v2.48.1 +ARG ERIGON_REPOSITORY=https://github.com/ledgerwatch/erigon.git + +RUN git clone --recurse-submodules -j8 $ERIGON_REPOSITORY + +WORKDIR ./erigon + +RUN git checkout ${ERIGON_VERSION} + +RUN make erigon + +FROM alpine:latest + +RUN apk add --no-cache ca-certificates curl jq libstdc++ libgcc +COPY --from=builder /go/erigon/build/bin/erigon /usr/local/bin/ COPY ./scripts/entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod u+x /usr/local/bin/entrypoint.sh