Created
May 15, 2016 15:50
-
-
Save YoukaiCat/e73478e5f18dabac0f1246a0acb400bb to your computer and use it in GitHub Desktop.
youkaicat/opendht
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 debian:latest | |
MAINTAINER Vladislav Mileshkin "noein93@gmail.com" | |
RUN apt-get update | |
RUN apt-get install -y \ | |
libncurses5-dev \ | |
libreadline-dev \ | |
nettle-dev \ | |
libgnutls28-dev \ | |
build-essential \ | |
cmake \ | |
wget | |
RUN wget https://github.com/msgpack/msgpack-c/releases/download/cpp-1.3.0/msgpack-1.3.0.tar.gz && \ | |
tar -xzf msgpack-1.3.0.tar.gz && \ | |
cd msgpack-1.3.0 && mkdir build && cd build && \ | |
cmake -DMSGPACK_CXX11=ON -DMSGPACK_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=/usr .. && \ | |
make -j && \ | |
make install | |
RUN wget https://github.com/savoirfairelinux/opendht/archive/master.tar.gz && \ | |
tar -xzf master.tar.gz && \ | |
cd opendht-master && mkdir build && cd build && \ | |
cmake -DOPENDHT_PYTHON=OFF -DCMAKE_INSTALL_PREFIX=/usr .. && \ | |
make -j && \ | |
make install | |
ENTRYPOINT ["dhtnode", "-p"] | |
CMD ["55333"] #default argument |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment