1234567891011121314151617181920212223242526272829303132 |
- # For running this container as non-root user, see
- # https://github.com/ethereum/cpp-ethereum/blob/develop/scripts/docker-eth
- # or call `docker run` like this:
- #
- ## mkdir -p ~/.ethereum ~/.web3
- ## docker run --rm -it \
- ## -p 127.0.0.1:8545:8545 \
- ## -p 0.0.0.0:30303:30303 \
- ## -v ~/.ethereum:/.ethereum -v ~/.web3:/.web3 \
- ## -e HOME=/ --user $(id -u):$(id -g) ethereum/client-cpp
- FROM ubuntu:xenial
- MAINTAINER chriseth
- ENV DEBIAN_FRONTEND noninteractive
- RUN apt-get update &&\
- apt-get -q -y install git-core sudo lsb-release software-properties-common &&\
- git clone --depth 1 --recursive https://github.com/ethereum/cpp-ethereum.git &&\
- cpp-ethereum/scripts/install_deps.sh &&\
- mkdir cpp-ethereum/build &&\
- cd cpp-ethereum/build &&\
- cmake .. && \
- make install && \
- ldconfig &&\
- rm -rf /cpp-ethereum
- EXPOSE 8545 30303
- ENTRYPOINT [ "/usr/local/bin/eth" ]
- CMD [ "-j" ]
|