Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 14, 2019
1 parent 0f50cc5 commit f756f29
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.git/
/.idea/
/build/
/.dockerignore
/Dockerfile
26 changes: 26 additions & 0 deletions Dockerfile
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"]

0 comments on commit f756f29

Please sign in to comment.