This commit is contained in:
Sebastian
2025-01-14 04:40:34 +01:00
parent 37d5a5caea
commit b8db21b3d4
3 changed files with 12 additions and 33 deletions

View File

@@ -1,21 +0,0 @@
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
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]