forked from nanexcool/dappnode-geth
-
Notifications
You must be signed in to change notification settings - Fork 16
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
12 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# Build Geth in a stock Go builder container | ||
FROM golang:1.14-alpine as builder | ||
|
||
ARG UPSTREAM_VERSION | ||
FROM ethereum/client-go:${UPSTREAM_VERSION} as geth | ||
|
||
# Pull Parity into a second stage deploy alpine container | ||
RUN apk add --no-cache make gcc musl-dev linux-headers git && \ | ||
git clone -b ${UPSTREAM_VERSION} https://github.com/ethereum/go-ethereum.git && \ | ||
cd go-ethereum && make geth | ||
|
||
|
||
FROM alpine:edge | ||
|
||
RUN apk --no-cache add \ | ||
libstdc++ \ | ||
eudev-libs \ | ||
libgcc \ | ||
bash | ||
libstdc++ eudev-libs libgcc bash | ||
|
||
COPY --from=geth /usr/local/bin/geth /usr/local/bin/geth | ||
COPY --from=builder /go/go-ethereum/build/bin/geth /usr/local/bin | ||
|
||
ENV SYNCMODE fast | ||
ENTRYPOINT geth --rpc --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcvhosts "*" --ws --wsorigins "*" --wsaddr 0.0.0.0 --syncmode ${SYNCMODE:-fast} --nousb $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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
"shortDescription": "Geth is the official Go implementation of the Ethereum protocol.", | ||
"description": "Ethereum is a global, open-source platform for decentralized applications where you can write code that controls digital value, runs exactly as programmed, and is accessible anywhere in the world.", | ||
"type": "library", | ||
"architectures": ["linux/amd64", "linux/arm64"], | ||
"chain": "ethereum", | ||
"author": "DAppNode Association <[email protected]> (https://github.com/dappnode)", | ||
"contributors": [ | ||
|
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