-
Notifications
You must be signed in to change notification settings - Fork 299
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
2 changed files
with
31 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/.git/ | ||
/.idea/ | ||
/build/ | ||
/.dockerignore | ||
/Dockerfile |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM debian:buster as evmone_builder | ||
|
||
RUN apt-get update -q && apt-get install -qy g++ cmake make | ||
|
||
ADD . /src | ||
RUN ls -al /src | ||
RUN mkdir /build && cmake -S /src -B /build | ||
RUN cmake --build /build --target install | ||
|
||
|
||
FROM golang:1.12-buster as geth_builder | ||
ARG geth_version=v1.9.1-evmc.6.3.0-0 | ||
|
||
RUN apt-get update -q && apt-get install -qy make git | ||
RUN git clone --depth=1 --single-branch --branch=$geth_version https://github.com/ewasm/go-ethereum /go-ethereum | ||
RUN cd /go-ethereum && make geth | ||
|
||
|
||
FROM debian:buster | ||
|
||
COPY --from=geth_builder /go-ethereum/build/bin/geth /usr/local/bin/ | ||
COPY --from=evmone_builder /usr/local/lib/libevmone.so /usr/local/lib/ | ||
RUN ldconfig | ||
|
||
EXPOSE 8545 8546 30303 30303/udp | ||
ENTRYPOINT ["geth"] |