Dockerfile 935 B

1234567891011121314151617181920212223242526272829303132
  1. # For running this container as non-root user, see
  2. # https://github.com/ethereum/cpp-ethereum/blob/develop/scripts/docker-eth
  3. # or call `docker run` like this:
  4. #
  5. ## mkdir -p ~/.ethereum ~/.web3
  6. ## docker run --rm -it \
  7. ## -p 127.0.0.1:8545:8545 \
  8. ## -p 0.0.0.0:30303:30303 \
  9. ## -v ~/.ethereum:/.ethereum -v ~/.web3:/.web3 \
  10. ## -e HOME=/ --user $(id -u):$(id -g) ethereum/client-cpp
  11. FROM ubuntu:xenial
  12. MAINTAINER chriseth
  13. ENV DEBIAN_FRONTEND noninteractive
  14. RUN apt-get update &&\
  15. apt-get -q -y install git-core sudo lsb-release software-properties-common &&\
  16. git clone --depth 1 --recursive https://github.com/ethereum/cpp-ethereum.git &&\
  17. cpp-ethereum/scripts/install_deps.sh &&\
  18. mkdir cpp-ethereum/build &&\
  19. cd cpp-ethereum/build &&\
  20. cmake .. && \
  21. make install && \
  22. ldconfig &&\
  23. rm -rf /cpp-ethereum
  24. EXPOSE 8545 30303
  25. ENTRYPOINT [ "/usr/local/bin/eth" ]
  26. CMD [ "-j" ]