-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,15 @@ | ||
FROM golang:1.16-alpine3.13 as builder | ||
ARG UPSTREAM_VERSION | ||
|
||
ARG git_commit | ||
ENV GIT_COMMIT=$git_commit | ||
FROM thorax/erigon:${UPSTREAM_VERSION} | ||
|
||
ARG git_branch | ||
ENV GIT_BRANCH=$git_branch | ||
|
||
# for linters to avoid warnings. we won't use linters in Docker anyway | ||
ENV LATEST_COMMIT="undefined" | ||
|
||
ARG UPSTREAM_VERSION | ||
|
||
RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++ | ||
|
||
WORKDIR /app | ||
|
||
RUN git clone -b ${UPSTREAM_VERSION} --recurse-submodules -j8 https://github.com/ledgerwatch/erigon.git /app | ||
RUN go mod download | ||
RUN make all | ||
|
||
FROM alpine:3.13 | ||
|
||
RUN apk add --no-cache ca-certificates libgcc libstdc++ tzdata | ||
|
||
COPY --from=builder /app/build/bin/* /usr/local/bin/ | ||
|
||
ENTRYPOINT [ "sh", "-c", "exec erigon \ | ||
ENTRYPOINT [ "sh", "-c", "exec erigon \ | ||
--datadir=/var/lib/erigon \ | ||
--metrics \ | ||
--metrics.addr=\"0.0.0.0\" \ | ||
--metrics.port=\"6060\" \ | ||
--private.api.addr=\"0.0.0.0:9090\" \ | ||
${ERIGON_EXTRA_OPTS}" ] | ||
--pprof \ | ||
--pprof.addr=0.0.0.0 \ | ||
--pprof.port=6061 \ | ||
${ERIGON_EXTRA_OPTS}" ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters