Created
February 13, 2017 03:02
-
-
Save belovachap/5a854422f0f60cf9ad0c387886f1885e to your computer and use it in GitHub Desktop.
Myriadcoin Dockerfile for building linux binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common | |
RUN apt-add-repository -y ppa:bitcoin/bitcoin | |
RUN apt-get update | |
RUN apt-get install -y autoconf \ | |
automake \ | |
bsdmainutils \ | |
build-essential \ | |
libboost-all-dev \ | |
libcurl4-openssl-dev \ | |
libdb4.8++-dev \ | |
libminiupnpc-dev \ | |
libpng-dev \ | |
libprotobuf-dev \ | |
libssl-dev \ | |
libtool \ | |
libqrencode-dev \ | |
libqt4-dev \ | |
m4 \ | |
make \ | |
pkg-config \ | |
protobuf-compiler | |
WORKDIR /usr/src/myriadcoin | |
RUN mkdir bin | |
VOLUME /usr/src/myriadcoin/bin | |
COPY . . | |
RUN ./autogen.sh | |
RUN CFLAGS="-O2 -fPIC -DUSE_SSE2" CPPFLAGS="-O2 -fPIC -DUSE_SSE2" ./configure | |
RUN make | |
RUN strip src/myriadcoin-cli src/myriadcoin-tx src/myriadcoind src/qt/myriad-qt | |
CMD cp src/myriadcoin-cli src/myriadcoin-tx src/myriadcoind src/qt/myriad-qt bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment