FROM aberaud/opendht-deps-bionic MAINTAINER Adrien Béraud RUN apt-get update && apt-get install -y python3-pip && pip3 install --upgrade cmake COPY . /root/opendht RUN cd /root/opendht && mkdir build && cd build \ && cmake -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_PYTHON=On -DOPENDHT_C=On -DOPENDHT_LTO=On -DOPENDHT_TESTS=ON .. \ && make -j8 && ./opendht_unit_tests && make install