Skip to content

Instantly share code, notes, and snippets.

@jorisbontje
Created July 7, 2014 11:19
Show Gist options
  • Save jorisbontje/20041c705de7b9ddbdcc to your computer and use it in GitHub Desktop.
Save jorisbontje/20041c705de7b9ddbdcc to your computer and use it in GitHub Desktop.
cpp-ethereum Dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -qy build-essential g++-4.8 git cmake libboost-all-dev
RUN apt-get install -qy automake unzip libgmp-dev libtool libleveldb-dev yasm libminiupnpc-dev libreadline-dev scons
RUN apt-get install -qy libncurses5-dev libcurl4-openssl-dev
RUN git clone --depth=1 https://github.com/mmoss/cryptopp.git
RUN cd cryptopp && scons --shared --prefix=/usr
RUN git clone --depth=1 https://github.com/cinemast/libjson-rpc-cpp.git
RUN cd libjson-rpc-cpp/build && cmake .. && make && make install && ldconfig
RUN git clone --depth=1 --branch=develop https://github.com/ethereum/cpp-ethereum
RUN mkdir cpp-ethereum/build
RUN cd cpp-ethereum/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DHEADLESS=1 && make -j $(cat /proc/cpuinfo | grep processor | wc -l) && make install && ldconfig
#ENTRYPOINT ["/usr/local/bin/eth"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment