github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/examples/chaincode/go/utxo/Dockerfile (about) 1 # FIXME: someone from the UTXO team will need to verify or rework this 2 FROM ubuntu:latest 3 4 RUN apt-get update && apt-get install pkg-config autoconf libtool -y 5 RUN cd /tmp && git clone https://github.com/bitcoin/secp256k1.git && cd secp256k1/ 6 WORKDIR /tmp/secp256k1 7 RUN ./autogen.sh 8 RUN ./configure --enable-module-recovery 9 RUN make 10 RUN ./tests 11 RUN make install 12 13 WORKDIR /tmp 14 RUN apt-get install libtool libboost1.55-all-dev -y 15 RUN git clone https://github.com/libbitcoin/libbitcoin-consensus.git 16 WORKDIR /tmp/libbitcoin-consensus 17 RUN ./autogen.sh 18 RUN ./configure 19 RUN make 20 RUN make install 21 22 # Now SWIG 23 WORKDIR /tmp 24 # Need pcre lib for building 25 RUN apt-get install libpcre3-dev -y 26 RUN wget http://prdownloads.sourceforge.net/swig/swig-3.0.8.tar.gz && tar xvf swig-3.0.8.tar.gz 27 WORKDIR /tmp/swig-3.0.8 28 RUN ./autogen.sh 29 RUN ./configure 30 RUN make 31 RUN make install 32 33 # Now add this for SWIG execution requirement to get missing stubs-32.h header file 34 RUN apt-get install g++-multilib -y 35 36 ENV CGO_LDFLAGS="-L/usr/local/lib/ -lbitcoin-consensus -lstdc++"