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